@font-face {
  font-family: 'YsabeauSC';
  src: url('assets/YsabeauSC-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('assets/onest/WOFF/OnestLight1602-hint.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f2f2f2;
  --gray-200: #e5e5e5;
  --gray-400: #b0b0b0;
  --gray-600: #6b6b6b;
  --accent: #c0662d;
  --radius: 0;
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }

#services, #functions, #industries, #process, #cases, #faq, #contact {
  scroll-margin-top: 88px;
}

body {
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { color: var(--gray-600); }

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

.section__lead {
  color: var(--gray-600);
  margin-bottom: 40px;
  max-width: 480px;
}

/* Buttons */
@keyframes btn-shine {
  0%   { left: -80%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
@keyframes btn-pulse {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.035); }
  75%  { transform: scale(1.035); }
  100% { transform: scale(1); }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 0;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease;
}
.btn::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -80%;
  width: 45%;
  height: 140%;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.25) 50%, transparent 75%);
  transform: skewX(-15deg);
  pointer-events: none;
  opacity: 0;
}
.btn.shine {
  animation: btn-pulse 1.1s ease forwards;
}
.btn.shine::after {
  animation: btn-shine 1.1s ease forwards;
}
.btn:hover { transform: scale(1.04); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--gray-200);
  padding: 10px 20px;
  font-size: 14px;
}
.btn--outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--no-color-hover:hover { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn--light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 20px;
  font-size: 14px;
}
.btn--light:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* Placeholders */
.placeholder {
  background: var(--gray-100);
  border: 1px dashed var(--gray-400);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 13px;
}
.placeholder--visual { height: 200px; margin-bottom: 16px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
  overflow: visible;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo { font-family: 'Onest', sans-serif; font-weight: 300; font-size: 17px; white-space: nowrap; letter-spacing: 0.08em; text-transform: uppercase; margin-left: -20px; }
.nav__links {
  display: flex;
  gap: 28px;
  flex: none;
  justify-content: center;
}
.logo { flex: 1; }
.nav__right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-right: -8px; }
.nav__inner > div:not([id]):not(.nav__right) { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.nav__links a { font-size: 14px; color: var(--gray-600); }
.nav__links a:hover { color: var(--black); }
.nav__dropdown { position: relative; display: flex; align-items: center; }
.nav__dropdown-trigger { font-size: 14px; color: var(--gray-600); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.nav__dropdown-trigger:hover { color: var(--black); }
.nav__dropdown:hover .nav__dropdown-trigger svg { transform: rotate(180deg); }
.nav__dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px; display: none; grid-template-columns: 1fr 1fr; min-width: 480px; box-shadow: 0 12px 32px rgba(0,0,0,0.12); z-index: 200; gap: 4px; }
.nav__dropdown:hover .nav__dropdown-menu { display: grid; }
.nav__dropdown-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.nav__dropdown-item:hover { background: var(--gray-100); }
.nav__dropdown-item-title { font-size: 13px; color: var(--black); font-weight: 500; line-height: 1.3; }
.nav__dropdown-item-desc { font-size: 11px; color: var(--gray-600); font-weight: 300; line-height: 1.4; }
.nav__cta { flex-shrink: 0; }
.nav-lang { position: relative; flex-shrink: 0; }
.nav-lang__cur { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--gray-600); cursor: pointer; padding: 4px 0; transition: color 0.2s; user-select: none; }
.nav-lang__cur svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.nav-lang:hover .nav-lang__cur svg { transform: rotate(180deg); }
.nav-lang:hover .nav-lang__cur { color: var(--black); }
.nav-lang__drop { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; padding: 4px; display: none; flex-direction: column; min-width: 60px; box-shadow: 0 8px 24px rgba(0,0,0,0.10); z-index: 200; }
.nav-lang:hover .nav-lang__drop { display: flex; }
.nav-lang__drop button { background: none; border: none; cursor: pointer; font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 7px; color: var(--gray-600); font-family: inherit; letter-spacing: 0.06em; text-align: left; transition: background 0.15s, color 0.15s; }
.nav-lang__drop button:hover { background: var(--gray-100); color: var(--black); }
.nav-lang__drop button.is-active { color: var(--black); font-weight: 600; }
/* legacy sep hidden */
.nav-lang__sep { display: none; }
.nav-lang__btn { display: none; }

.nav__lang-toggle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  border-radius: 0;
  padding: 4px 10px;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.nav__lang-toggle:hover { color: var(--black); border-color: var(--black); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 20px;
  height: 2px;
  background: var(--black);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-200);
}
.nav__mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
}
.nav__mobile.open { display: flex; }

/* Mobile nav — services submenu */
.nav-mobile-services { display: flex; flex-direction: column; border-bottom: 1px solid var(--gray-100); }
.nav-mobile-services__toggle {
  all: unset; padding: 12px 0; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--black);
}
.nav-mobile-services__toggle::after { content: '↓'; font-size: 11px; opacity: 0.4; transition: transform 0.2s; }
.nav-mobile-services.is-open .nav-mobile-services__toggle::after { transform: rotate(180deg); }
.nav-mobile-sub { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding-left: 12px; }
.nav-mobile-sub__item { display: block; padding: 9px 0; font-size: 14px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); }
.nav-mobile-sub__item:last-child { border-bottom: none; }

/* Hero */
.hero { padding-top: 0; }
.hero__top {
  display: grid;
  grid-template-columns: 1fr 50vw;
  align-items: stretch;
  padding-left: max(24px, calc((100vw - var(--container)) / 2));
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 56px 56px 0;
}
.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--black);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero__subtext {
  max-width: 100%;
  margin-bottom: 16px;
  font-size: 15px;
  text-align: justify;
}
.hero__trust {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.6;
}
.hero .btn { align-self: flex-start; }

.hero__stack {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 64px;
  padding: 28px max(24px, calc((100vw - var(--container)) / 2));
  border-top: 1px solid var(--gray-100);
  background: #fff;
}
.hero__stack-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}
.hero__stack-divider { display: none; }
.hero__stack-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--gray-50, #f5f5f4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero__stack-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--black);
}
.hero__stack-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero__stack-body strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}
.hero__stack-body span {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.5;
}

/* Services */
.services { padding: 16px 24px 80px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  aspect-ratio: 5 / 4;
}
.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.2);
}
.service-card h3 {
  position: relative;
  z-index: 2;
  font-size: 19px;
  transition: opacity 0.25s ease;
}
.service-card:hover h3 { opacity: 0; }
.service-card__desc {
  position: relative;
  z-index: 2;
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 8px;
  line-height: 1.5;
  transition: opacity 0.25s ease;
}
.service-card:hover .service-card__desc { opacity: 0; }
.service-card__divider {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 1px;
  background: var(--gray-400);
  margin: 14px 0;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover .service-card__divider { opacity: 0; }
.service-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  padding: 28px 24px 64px;
  background: rgba(17, 17, 17, 0);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  pointer-events: none;
  overflow: hidden;
}
.service-card:hover .service-card__overlay {
  opacity: 1;
  background: rgba(17, 17, 17, 0.92);
}
.service-card__overlay p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}
.service-card__overlay ul {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card__overlay li {
  padding-left: 14px;
  position: relative;
}
.service-card__overlay li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.5);
}
.service-card__link {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: color 0.25s ease;
}
.service-card__link svg {
  width: 14px;
  height: 14px;
  stroke: var(--black);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.25s ease;
}
.service-card:hover .service-card__link,
.service-card:hover .service-card__link svg { color: var(--white); stroke: var(--white); }
.service-card--cta {
  border-width: 2px;
  border-color: rgba(17, 17, 17, 0.5);
  transform: scale(1.025);
}

/* Business functions */
.functions { padding: 80px 24px; }
.functions .section__lead { margin-bottom: 0; }
.functions__list {
  margin-top: 40px;
  border-top: 1px solid var(--gray-200);
}
.fn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-200);
}
.fn-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.fn-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.6;
}
.security .fn-row:last-child { border-bottom: none; padding-bottom: 0; }
.fn-item h3 { font-size: 18px; font-weight: 200; }
.fn-item p { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; font-weight: 200; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal[data-visible="true"] { opacity: 1; transform: none; }
.fn-row .fn-item:nth-child(2) { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Industries */
.industries { padding: 40px 24px 80px; }
.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.industries__intro {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.industries__intro h2 { flex: 1; }
.industries__intro .btn { flex-shrink: 0; white-space: nowrap; margin-top: 0; }

.industry-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
}
.industry-card:hover { transform: scale(1.03); }

.industry-card__media {
  position: absolute;
  inset: 0;
}
.industry-card__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}
.industry-card__title {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.industry-card:hover .industry-card__title { opacity: 0; }
.industry-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(17, 17, 17, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.industry-card__overlay p { color: var(--white); font-size: 14px; }
.industry-card:hover .industry-card__overlay { opacity: 1; }
.industry-card__link {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.industry-card__link svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}
.industry-card:hover .industry-card__link { opacity: 1; }

/* Process */
.process { padding: 48px 24px 40px; }
.process h2 { margin-bottom: 48px; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  padding-top: 0;
  overflow: visible;
}
.process--accent .process__steps { grid-template-columns: repeat(6, 1fr); }

/* track line */
.process__track {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0,0,0,0.1);
}
.process__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* dot indicator */
.step { position: relative; }
.step__dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid #bbb;
  background: #fff;
  margin-bottom: 40px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.step.is-active .step__dot {
  background: var(--accent);
  border-color: var(--accent);
}

/* number */
.step__num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ccc;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}
.step.is-active .step__num {
  color: var(--accent);
  animation: stepNumPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes stepNumPop {
  0%   { transform: scale(0.85); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.step h3 {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0;
  cursor: default;
}
.step p {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: #1a1a1a;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(6px);
  z-index: 10;
  white-space: normal;
}
.step p::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}
.step:hover p {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.process--accent .eyebrow::before { background: var(--accent); }

/* Cases */
.cases { padding: 80px 24px; }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card p { font-size: 14px; }

/* FAQ */
/* FAQ */
/* FAQ v2 */
.faq2 { background: #000; padding: 56px 24px; }
.faq2__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}
.faq2__left .section-tag { color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.faq2__heading {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  position: sticky;
  top: 100px;
}
.faq2__list { display: flex; flex-direction: column; }
.faq2__item { border-top: 1px solid rgba(255,255,255,0.1); }
.faq2__item:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq2__question {
  width: 100%;
  background: none;
  border: none;
  display: grid;
  grid-template-columns: 60px 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  text-align: left;
  color: #fff;
}
.faq2__num {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-family: inherit;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.faq2__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}
.faq2__icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.faq2__item.is-open .faq2__icon { color: #fff; border-color: rgba(255,255,255,0.5); }
.faq2__answer {
  display: none;
  padding: 0 0 24px 76px;
}
.faq2__item.is-open .faq2__answer { display: block; }
.faq2__answer p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 560px;
}
.faq2__answer ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  margin: 10px 0;
  max-width: 560px;
}
.faq2__answer ul li {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.faq2__answer ul li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--accent);
}
.faq2__answer ul li strong { color: rgba(255,255,255,0.75); font-weight: 500; }

.faq { padding: 80px 24px; max-width: 760px; }
.faq h2 { text-align: center; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq__item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq__toggle {
  font-size: 20px;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}
.faq__item.open .faq__toggle { transform: rotate(45deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 24px;
}
.faq__item.open .faq__answer {
  max-height: 200px;
  padding: 0 24px 20px;
}
.faq__answer p { font-size: 14px; }

/* Final CTA */
.final-cta {
  padding: 80px 24px;
  background: #000;
  background-image: url('assets/49dbe9a14639cc98f6f8b58b6d2ebb80.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
}
.final-cta__eyebrow {
  display: inline-block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.final-cta__left .section-tag { color: rgba(255,255,255,0.4); }
.final-cta__left h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #fff;
}
.final-cta__left p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 440px;
}

/* right column */
.final-cta__right {
  display: flex;
  align-items: stretch;
}
.final-cta__card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  padding: 36px;
  width: 100%;
}
.final-cta__card h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #fff;
}
.final-cta__card-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin-bottom: 28px;
}
.final-cta__micro {
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.65;
  margin-top: 16px;
  font-weight: 300;
}
.final-cta__form { display: flex; flex-direction: column; gap: 20px; }
.final-cta__field { display: flex; flex-direction: column; gap: 8px; }
.final-cta__field label { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 300; }
.final-cta__q { color: rgba(255,255,255,0.3); margin-right: 6px; }
.final-cta__channels { display: flex; gap: 8px; }
.final-cta__ch {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.final-cta__ch:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.8); }
.final-cta__ch.is-active { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.final-cta__field input,
.final-cta__field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 8px 0;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}
.final-cta__field input:focus,
.final-cta__field textarea:focus { border-color: rgba(255,255,255,0.6); }
.final-cta__field input::placeholder,
.final-cta__field textarea::placeholder { color: rgba(255,255,255,0.25); }
.final-cta__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  align-self: flex-start;
  border-radius: 0;
  padding: 14px 24px;
}
.btn--light { background: #fff; color: #1a1a1a; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { opacity: 0.88; }
.final-cta__contacts { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.final-cta__direct { font-size: 13px; color: #fff; font-weight: 500; letter-spacing: 0.02em; }
.final-cta__direct-btns { display: flex; flex-direction: column; gap: 8px; max-width: 70%; }
.final-cta__direct-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.final-cta__direct-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.12); }
.final-cta__direct-left { display: flex; align-items: center; gap: 10px; }
.final-cta__direct-left svg { width: 16px; height: 16px; opacity: 0.7; }
.final-cta__arrow { width: 16px; height: 16px; opacity: 0.5; transition: opacity 0.2s; }
.final-cta__direct-btn:hover .final-cta__arrow { opacity: 1; }

/* Footer */
.footer { border-top: 1px solid var(--gray-200); padding: 64px 24px 24px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer__brand p { font-size: 14px; margin-top: 12px; max-width: 260px; }
.footer__brand-label { font-size: 11px !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400) !important; margin-top: 24px !important; margin-bottom: 0 !important; }
.footer__contacts { display: flex; flex-direction: column; margin-top: 10px; }
.footer__contacts a { font-size: 14px; color: var(--gray-600); margin-bottom: 10px; }
.footer__social-icons { display: flex; gap: 12px; margin-top: 4px; }
.footer__social-icon { color: var(--gray-500); transition: color 0.2s; }
.footer__social-icon:hover { color: var(--black); }
.footer__right { display: flex; gap: 48px; flex-wrap: wrap; margin-left: auto; }
.footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; color: var(--gray-600); margin-bottom: 10px; }
.footer__audit-link { font-size: 13px; color: #f97316; font-weight: 500; text-decoration: none; }
.footer__audit-link:hover { text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__privacy {
  font-size: 12px;
  color: var(--gray-400);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer__privacy:hover { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; padding-top: 0; }
  .process__steps::before, .step::before { display: none; }
  .cases__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .industries__grid { grid-template-columns: 1fr; }
  .industries__intro { grid-column: span 1; }
  .process__steps { grid-template-columns: 1fr; }
  .footer__links { gap: 32px; }
  .fn-row { grid-template-columns: 1fr; gap: 28px; }
  .fn-item:not(:last-child) { border-bottom: 1px solid var(--gray-200); padding-bottom: 28px; }
  .hero__stack { flex-direction: column; gap: 20px; }
  .hero__stack-divider { width: 100%; height: 1px; margin: 0; }
}

/* ── Scenario Live ── */
.scn-live { background: var(--gray-50); padding: 100px 24px; }
.scn-live__inner { max-width: var(--container); margin: 0 auto; }

.scn-live__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.scn-live__head h2 { margin-bottom: 10px; }
.scn-live__head p { font-size: 15px; color: var(--gray-600); margin-bottom: 24px; }

.scn-live__features {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.scn-live__features li {
  font-size: 14px; color: var(--gray-600);
  display: flex; align-items: center; gap: 10px;
}
.scn-live__features li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* layout overrides already handled by width:100% on .scn-window */

/* ── Scenario: single dark app window ── */
.scn-window {
  background: #1c1c1e;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.06);
  min-width: 0;
  width: 100%;
}

/* Chrome bar */
.scn-window__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scn-agent-id {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.55);
}
.scn-agent-icon {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(204,107,60,0.15);
  border: 1px solid rgba(204,107,60,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.scn-agent-id span:nth-child(2) { color: #fff; font-weight: 600; font-size: 13px; }
.scn-agent-sep { color: rgba(255,255,255,0.2); }
.scn-agent-tag {
  font-size: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; padding: 2px 8px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.02em;
}

.scn-window__live {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: #22c55e;
  letter-spacing: 0.04em;
}
.scn-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Body: two columns */
.scn-window__body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  height: 480px;
}
.scn-col-divider { background: rgba(255,255,255,0.07); }

/* LEFT: chat */
.scn-col--chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.scn-chat__header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.scn-chat__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #2f6eb5;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.scn-chat__name {
  font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2;
}
.scn-verified { color: #5b9cf6; font-size: 11px; }
.scn-chat__status { font-size: 11px; color: rgba(255,255,255,0.4); }

/* Messages */
.scn-messages { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.scn-msg { display: flex; flex-direction: column; gap: 3px; max-width: 84%; }
.scn-msg--out { align-self: flex-end; align-items: flex-end; }
.scn-bubble {
  font-size: 12.5px; line-height: 1.55;
  padding: 9px 13px;
  border-radius: 14px;
  background: #2c2c2e;
  color: rgba(255,255,255,0.88);
}
.scn-msg--in .scn-bubble { border-radius: 4px 14px 14px 14px; }
.scn-msg--out .scn-bubble { background: #2f6eb5; color: #fff; border-radius: 14px 14px 4px 14px; }
.scn-bubble strong { color: #fff; }
.scn-bubble--file {
  display: flex; align-items: center; gap: 8px;
  background: rgba(47,110,181,0.7);
  border: 1px solid rgba(91,156,246,0.3);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12px; color: #fff;
}
.scn-file-size { font-size: 10px; color: rgba(255,255,255,0.5); margin-left: auto; }
.scn-time { font-size: 10px; color: rgba(255,255,255,0.3); padding: 0 4px; }

.scn-typing {
  display: flex; gap: 4px; align-items: center;
  padding: 10px 14px;
  background: #2c2c2e;
  border-radius: 4px 14px 14px 14px;
  width: fit-content;
}
.scn-typing span {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: scnDot 1s infinite ease-in-out;
}
.scn-typing span:nth-child(2) { animation-delay: 0.18s; }
.scn-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes scnDot {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* System note */
.scn-system-note {
  font-size: 10px; color: rgba(255,255,255,0.28);
  text-align: center; letter-spacing: 0.03em;
  padding: 4px 0 2px;
}

/* RIGHT: data panel */
.scn-col--crm {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
}
.scn-data-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}

/* Profile card */
.scn-profile-card {
  background: #2a2a2c;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.scn-profile-card__top { display: flex; align-items: center; gap: 10px; }

/* ROI block */
.scn-roi-block {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 10px; padding: 11px 13px;
}
.scn-roi-block__label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: rgba(34,197,94,0.6);
  margin-bottom: 8px;
}
.scn-roi-rows { display: flex; flex-direction: column; gap: 5px; }
.scn-roi-row {
  display: flex; justify-content: space-between;
  font-size: 11.5px;
}
.scn-roi-row span { color: rgba(255,255,255,0.35); }
.scn-roi-row strong { color: rgba(255,255,255,0.8); font-weight: 500; }

.scn-warn { color: #f59e0b !important; }

/* Meeting badge */
.scn-meet-badge {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 8px 12px;
}
.scn-meet-badge svg { color: var(--accent); flex-shrink: 0; }

/* Pipeline */
.scn-pipeline { display: flex; flex-direction: column; gap: 2px; }
.scn-stage {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  opacity: 0.25;
  transition: opacity 0.3s;
  position: relative;
}
.scn-stage + .scn-stage::before {
  content: '';
  position: absolute; left: 7px; top: -6px;
  width: 2px; height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
}
.scn-stage__dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  transition: all 0.3s;
  position: relative;
}
.scn-stage__label {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.3s;
}
.scn-stage--done {
  opacity: 1;
}
.scn-stage.is-active .scn-stage__dot {
  background: var(--accent);
  border-color: var(--accent);
}
.scn-stage.is-active .scn-stage__dot::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff; font-weight: 700;
}
.scn-stage.is-active .scn-stage__label { color: rgba(255,255,255,0.75); }
/* last active stage pulses */
.scn-stage.is-last .scn-stage__dot { background: rgba(204,107,60,0.15); }
.scn-stage.is-last .scn-stage__dot::after { content: ''; }
.scn-stage.is-last .scn-stage__dot--active {
  border-color: var(--accent);
  background: rgba(204,107,60,0.15);
}
.scn-stage.is-last .scn-stage__dot--active::after {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: stagePulse 0.9s ease infinite alternate;
}
.scn-stage.is-last .scn-stage__label { color: var(--accent); font-weight: 600; }
@keyframes stagePulse { from { opacity: 0.6; } to { opacity: 1; } }

/* Lead card */
.scn-lead-card {
  background: #2c2c2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.scn-lead-card__top { display: flex; align-items: center; gap: 10px; }
.scn-lead-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.scn-lead-info { flex: 1; min-width: 0; }
.scn-lead-name { font-size: 13px; font-weight: 600; color: #fff; }
.scn-lead-amount { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.scn-lead-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.scn-lead-rows { display: flex; flex-direction: column; gap: 6px; }
.scn-lead-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px;
}
.scn-lead-row span { color: rgba(255,255,255,0.35); }
.scn-lead-row strong { color: rgba(255,255,255,0.8); font-weight: 500; }
.scn-green { color: #22c55e !important; }
.scn-lead-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600;
  color: var(--accent);
  background: rgba(204,107,60,0.1);
  border: 1px solid rgba(204,107,60,0.2);
  border-radius: 6px; padding: 6px 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Animation states */
.scn-hidden { opacity: 0; transform: translateY(6px); }
.scn-hidden.scn-visible { animation: scnFadeIn 0.4s ease forwards; }
#scnDemo:not(.is-playing) .scn-hidden { opacity: 1; transform: none; }

/* Pipeline stages hidden by default */
.scn-stage { opacity: 0.25; }
.scn-stage.is-active { opacity: 1; }

/* Step dot states (kept for JS compat) */
.scn-step__dot {
  width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  transition: background 0.3s, border-color 0.3s;
  position: relative;
}
.scn-step__dot.done { background: #22c55e; border-color: #22c55e; }
.scn-step__dot.done::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff;
}
.scn-step__dot.active { border-color: var(--accent); }
@keyframes scnPulse { from { opacity: 0.5; } to { opacity: 1; } }

/* Panel shell */
.scn-panel {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.scn-panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.scn-panel__title { font-size: 10px; font-weight: 500; color: var(--gray-500); letter-spacing: 0.03em; flex: 1; }
.scn-live-badge { font-size: 9px; font-weight: 600; color: #22c55e; letter-spacing: 0.04em; }

/* Messages */
.scn-messages { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.scn-msg { display: flex; flex-direction: column; gap: 2px; max-width: 88%; }
.scn-msg--out { align-self: flex-end; align-items: flex-end; }
.scn-bubble {
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--black);
}
.scn-msg--out .scn-bubble { background: var(--black); color: #fff; border-radius: 12px 12px 2px 12px; }
.scn-msg--in .scn-bubble { border-radius: 12px 12px 12px 2px; }
.scn-bubble--file { background: var(--black); color: #fff; border-radius: 12px 12px 2px 12px; font-size: 11px; }
.scn-time { font-size: 9px; color: var(--gray-400); }

.scn-typing {
  display: flex; gap: 4px;
  padding: 8px 12px;
  background: var(--gray-100);
  border-radius: 12px 12px 12px 2px;
  width: fit-content;
}
.scn-typing span {
  width: 4px; height: 4px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: scnDot 1s infinite ease-in-out;
}
.scn-typing span:nth-child(2) { animation-delay: 0.15s; }
.scn-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes scnDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Process steps */
.scn-process { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.scn-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px;
  background: var(--gray-50);
  border-radius: 9px;
  border: 1px solid var(--gray-100);
}
.scn-step__icon {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: transparent;
  transition: background 0.3s, color 0.3s;
}
.scn-step__icon--done { background: #22c55e; color: #fff; }
.scn-step__title { font-size: 11px; font-weight: 500; color: var(--black); line-height: 1.3; }
.scn-step__sub { font-size: 10px; color: var(--gray-400); margin-top: 1px; }
.scn-timer {
  margin-top: 4px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  padding: 6px 10px;
  background: rgba(204,107,60,0.06);
  border-radius: 8px;
  border: 1px solid rgba(204,107,60,0.15);
}

/* CRM result */
.scn-panel--crm { opacity: 1; } /* shown via data-delay JS */
.scn-crm { padding: 12px; }
.scn-crm-card__status {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.scn-crm-card__name { font-size: 13px; font-weight: 500; color: var(--black); }
.scn-crm-card__company { font-size: 10px; color: var(--gray-400); margin-bottom: 8px; }
.scn-crm-card__divider { height: 1px; background: var(--gray-200); margin: 8px 0; }
.scn-crm-card__row { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.scn-crm-card__row strong { color: var(--black); font-weight: 500; }
.scn-green { color: #22c55e !important; }
.scn-crm-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.scn-crm-card__tags span {
  font-size: 10px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--gray-600);
}
.scn-crm-note {
  margin-top: 8px;
  font-size: 10px;
  color: var(--gray-400);
  padding: 7px 10px;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  text-align: center;
}

/* Animation */
.scn-anim {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}
#scnDemo.is-playing .scn-anim {
  animation: scnFadeIn 0.45s ease forwards;
  animation-delay: var(--d, 0s);
}
/* fallback: show everything if JS didn't fire */
#scnDemo:not(.is-playing) .scn-anim {
  opacity: 1;
  transform: none;
}
@keyframes scnFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: var(--black);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 90;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { opacity: 0.85; }

/* Service page */
/* Agent hero — split layout with UI panels */
.agent-hero {
  display: grid;
  grid-template-columns: minmax(520px, 728px) 1fr;
  align-items: stretch;
  min-height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  margin-top: 64px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.agent-hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 48px 40px max(80px, calc((100vw - var(--container)) / 2 + 60px));
  position: relative;
  z-index: 2;
}
.agent-hero__left h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.agent-hero__left .service-hero__lead {
  font-size: 15px;
  max-width: 100%;
  width: 100%;
  margin-bottom: 24px;
}

/* right stage */
.agent-hero__stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}
.agent-hero__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='560'%3E%3Ctext font-family='ui-monospace,SFMono-Regular,Menlo,monospace' font-size='9' fill='%23000' xml:space='preserve'%3E%3Ctspan x='12' dy='18'%3Eimport %7B AgentCore %7D from '@atelier/agent'%3C/tspan%3E%3Ctspan x='12' dy='18'%3Eimport %7B CRMConnector %7D from '@atelier/crm'%3C/tspan%3E%3Ctspan x='12' dy='18'%3E%3C/tspan%3E%3Ctspan x='12' dy='18'%3Econst agent = new AgentCore(%7B%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  model: 'claude-opus-5',%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  memory: 'persistent',%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  tools: [CRMConnector],%3C/tspan%3E%3Ctspan x='12' dy='18'%3E%7D)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E%3C/tspan%3E%3Ctspan x='12' dy='18'%3Eagent.on('lead:new', async (lead) =%3E %7B%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  const ctx = await agent.recall(lead.userId)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  const res = await agent.think(%7B%3C/tspan%3E%3Ctspan x='12' dy='18'%3E    prompt: lead.message, ctx,%3C/tspan%3E%3Ctspan x='12' dy='18'%3E    goal: 'qualify_and_capture',%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  %7D)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  if (res.qualified) %7B%3C/tspan%3E%3Ctspan x='12' dy='18'%3E    await CRMConnector.createDeal(%7B%3C/tspan%3E%3Ctspan x='12' dy='18'%3E      name: lead.name, score: res.score%3C/tspan%3E%3Ctspan x='12' dy='18'%3E    %7D)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  %7D%3C/tspan%3E%3Ctspan x='12' dy='18'%3E%7D)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E%3C/tspan%3E%3Ctspan x='12' dy='18'%3Eagent.schedule('0 9 * * *', async () =%3E %7B%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  const deals = await CRMConnector.getDeals()%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  const report = await agent.summarize(deals)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E  await bot.sendToManager(report)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E%7D)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E%3C/tspan%3E%3Ctspan x='12' dy='18'%3Eagent.useKnowledge(%7B source: 'notion' %7D)%3C/tspan%3E%3Ctspan x='12' dy='18'%3Eagent.useKnowledge(%7B source: 'confluence' %7D)%3C/tspan%3E%3Ctspan x='12' dy='18'%3E%3C/tspan%3E%3Ctspan x='12' dy='18'%3Eawait agent.start()%3C/tspan%3E%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 420px 560px;
}

/* panels group */
.panels-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%) perspective(1100px) rotateX(10deg) rotateY(-20deg) rotateZ(3deg);
  transform-style: preserve-3d;
  animation: floatPanels 7s ease-in-out infinite;
  width: 620px;
  height: 500px;
}
@keyframes floatPanels {
  0%, 100% { transform: translate(-50%, -58%) perspective(1100px) rotateX(10deg) rotateY(-20deg) rotateZ(3deg) translateY(0px); }
  50%       { transform: translate(-50%, -58%) perspective(1100px) rotateX(10deg) rotateY(-20deg) rotateZ(3deg) translateY(-12px); }
}

/* panel base */
.panel {
  position: absolute;
  background: #fff;
  border: 1px solid #e5e5e3;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  font-size: 12px;
  overflow: hidden;
}
.panel__titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid #f0f0ee;
  background: #fafaf9;
}
.panel__dots { display: flex; gap: 5px; }
.panel__dots span { width: 9px; height: 9px; border-radius: 50%; display: block; }
.panel__dots span:nth-child(1) { background: #ff6058; }
.panel__dots span:nth-child(2) { background: #ffbc2e; }
.panel__dots span:nth-child(3) { background: #29c940; }
.panel__title { font-size: 11px; font-weight: 600; color: #888; letter-spacing: 0.02em; margin-left: 2px; }

/* unified image slice across scenario rows */
.roi-row__img-slice {
  width: 100%;
  height: 100%;
  background-image: url('assets/dc9c8774654bf55d3bc1f464c397e0e0.jpg');
  background-size: 140px 480px;
  background-repeat: no-repeat;
}

/* chat panel */
.panel--chat { width: 270px; top: 20px; left: 0; z-index: 3; }
.chat-messages { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; }
.msg__bubble { padding: 7px 10px; border-radius: 10px; font-size: 11.5px; line-height: 1.5; }
.msg--in .msg__bubble { background: #f2f2f0; color: #333; border-bottom-left-radius: 3px; }
.msg--out { align-self: flex-end; }
.msg--out .msg__bubble { background: #0a0a0a; color: #fff; border-bottom-right-radius: 3px; }
.msg__time { font-size: 9.5px; color: #bbb; margin-top: 3px; padding: 0 3px; }
.msg--out .msg__time { text-align: right; }
.typing { display: flex; gap: 4px; align-items: center; padding: 8px 14px 12px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #ccc; animation: blink 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }

/* status panel */
.panel--status { width: 195px; top: 0; left: 360px; z-index: 4; }
.status-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.status-row { display: flex; align-items: center; justify-content: space-between; }
.status-label { font-size: 11px; color: #777; }
.status-chip { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.chip--green { background: #e9fbe9; color: #1a8c1a; }
.chip--blue  { background: #e8edfd; color: #3a56d4; }
.chip--gray  { background: #f0f0ee; color: #888; }
.status-divider { height: 1px; background: #f0f0ee; }
.status-count { text-align: center; padding-top: 4px; }
.status-count__num { font-size: 22px; font-weight: 800; color: #0a0a0a; display: block; line-height: 1; }
.status-count__label { font-size: 10px; color: #999; }

/* CRM panel */
.panel--crm { width: 235px; top: 170px; left: 260px; z-index: 2; }
.crm-body { padding: 14px; }
.crm-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; background: #e9fbe9; color: #1a8c1a; padding: 3px 8px; border-radius: 20px; margin-bottom: 10px; }
.crm-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2ec92e; display: block; }
.crm-name { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; color: #0a0a0a; }
.crm-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #f5f5f3; font-size: 11px; }
.crm-row:last-of-type { border: none; }
.crm-row__label { color: #999; }
.crm-row__val { font-weight: 600; color: #333; }
.crm-score { margin-top: 12px; background: #f7f7f6; border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; }
.crm-score__label { font-size: 10px; color: #888; }
.crm-score__bar { flex: 1; height: 5px; background: #e5e5e3; border-radius: 3px; margin: 0 8px; overflow: hidden; }
.crm-score__fill { height: 100%; width: 74%; background: linear-gradient(90deg, #4f7ef7, #7c5fe6); border-radius: 3px; }
.crm-score__num { font-size: 11px; font-weight: 700; color: #4f7ef7; }

/* analytics panel */
.panel--analytics { width: 215px; top: 310px; left: 60px; z-index: 1; }
.analytics-body { padding: 14px; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.a-stat { background: #f7f7f6; border-radius: 8px; padding: 8px 10px; }
.a-stat__num { font-size: 16px; font-weight: 800; color: #0a0a0a; }
.a-stat__label { font-size: 9.5px; color: #999; margin-top: 2px; }
.a-stat__delta { font-size: 9.5px; color: #2ec92e; font-weight: 600; }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.bar { flex: 1; border-radius: 3px 3px 0 0; background: #e5e5e3; }
.bar.active { background: linear-gradient(180deg, #4f7ef7, #7c5fe6); }

/* bottom note */
.agent-hero__bottom-note {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  padding: 16px 24px;
  font-size: 12.5px;
  color: #aaa;
  background: #fff;
  z-index: 10;
}

/* standard service-hero still used on other pages */
.service-hero {
  padding: 140px 24px 60px;
  max-width: 760px;
}
.back-link {
  display: inline-block;
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--black); }
.service-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  margin-bottom: 20px;
}
.service-hero__lead {
  font-size: 17px;
  margin-bottom: 32px;
}
.service-body {
  padding: 0 24px 100px;
  max-width: 760px;
}
.placeholder-text {
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* Scenario */
.scenario { padding: 20px 24px 80px; }
.scenario__head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.scenario__head .eyebrow { justify-content: center; }
.scenario__head h2 { margin-bottom: 14px; }
.scenario__head .section__lead { margin: 0 auto; }
.scenario__card {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  padding: 28px;
}
.scenario__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scenario__pulse {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--accent);
  animation: scenarioPulse 2s ease-in-out infinite;
}
@keyframes scenarioPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}
.scenario__trigger-title { font-size: 14px; font-weight: 600; }
.scenario__trigger-sub { font-size: 12.5px; color: var(--gray-600); }
.scenario__badge {
  margin-left: auto;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  flex-shrink: 0;
}
.scenario__divider { height: 1px; background: var(--gray-200); margin: 28px 0; }
.scenario__flow {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.scenario__node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.scenario__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.scenario__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.6;
}
.scenario__node-title { margin-top: 12px; font-size: 13px; font-weight: 600; }
.scenario__node-sub { margin-top: 3px; font-size: 11.5px; color: var(--gray-600); }
.scenario__connector {
  position: relative;
  flex: 0 0 40px;
  height: 1px;
  margin-top: 26px;
  background: var(--gray-200);
}
.scenario__connector span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.scenario__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.scenario__stat-num {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.scenario__stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-600);
}

@keyframes scenarioFill {
  0% { transform: scaleX(0); }
  14% { transform: scaleX(1); }
  86% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes scenarioGlow {
  0%, 100% { border-color: var(--gray-200); box-shadow: none; }
  50% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(192, 102, 45, 0.12); }
}
.scenario__card[data-visible="true"] .scenario__connector span {
  animation: scenarioFill 4.5s ease-in-out infinite;
}
.scenario__flow .scenario__connector:nth-child(2) span { animation-delay: 0s; }
.scenario__flow .scenario__connector:nth-child(4) span { animation-delay: 1s; }
.scenario__flow .scenario__connector:nth-child(6) span { animation-delay: 2s; }
.scenario__card[data-visible="true"] .scenario__node:nth-child(3) .scenario__icon { animation: scenarioGlow 4.5s ease-in-out infinite; animation-delay: 0.9s; }
.scenario__card[data-visible="true"] .scenario__node:nth-child(5) .scenario__icon { animation: scenarioGlow 4.5s ease-in-out infinite; animation-delay: 1.9s; }
.scenario__card[data-visible="true"] .scenario__node:nth-child(7) .scenario__icon { animation: scenarioGlow 4.5s ease-in-out infinite; animation-delay: 2.9s; }

@media (max-width: 720px) {
  .scenario__flow { flex-direction: column; align-items: stretch; }
  .scenario__node { flex-direction: row; text-align: left; gap: 14px; }
  .scenario__node-title, .scenario__node-sub { margin-top: 0; }
  .scenario__connector { flex-basis: 20px; width: 1px; height: 20px; margin: 0 0 0 25px; }
  .scenario__stats { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .scenario__pulse { animation: none; }
  .scenario__connector span { animation: none !important; transform: scaleX(1); }
  .scenario__node .scenario__icon { animation: none !important; }
}

/* Service hero extras */
.stat-row {
  display: flex;
  margin-bottom: 28px;
}
.stat-row__item {
  padding: 0 20px;
  border-left: 1px solid var(--gray-200);
}
.stat-row__item:first-child { padding-left: 0; border-left: none; }
.stat-row__num {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  text-transform: lowercase;
}
.stat-row__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}
.service-hero__note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--gray-400);
  max-width: 52ch;
}

/* Section head (shared by pains / security / dev-steps) */
.pains__head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.pains__head .eyebrow { justify-content: center; }
.pains__head .section__lead { margin: 0 auto; }

/* Pains */
.pains { padding: 48px 24px; background: transparent; }
.pains__inner { max-width: var(--container); margin: 0 auto; }
.section-tag {
  display: block;
  font-size: 12px;
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #999;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.pains__heading {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin-bottom: 16px;
}
.pains__lead {
  font-size: 15px;
  color: #777;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 48px;
}
.pains__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pains__card {
  border: 1px solid #e8e8e6;
  border-radius: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  transition: transform 0.3s ease;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.pains__card { filter: grayscale(100%); }
.pains__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.3) 100%);
  transition: background 0.3s ease;
}
.pains__card:hover { transform: scale(1.015); }
.pains__card:hover::before { background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.2) 100%); }
.pains__card h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  max-width: 70%;
}
.pains__card p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  position: relative;
  z-index: 1;
  max-width: 100%;
  text-align: justify;
}

/* Pains — index home variant */
.pains--home { background: transparent; }
.pains__eyebrow {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 480px;
}
.pains__footer {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pains__footer-copy {
  flex: 1;
  min-width: 200px;
}
.pains__footer-heading {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--black);
}
.pains__footer-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(0,0,0,0.6);
  max-width: 480px;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.audit-arrow {
  display: inline-block;
  color: var(--black);
  animation: arrow-bounce 1s ease-in-out infinite;
}
.btn--audit-cta {
  background: #c0662d;
  color: #fff;
  padding: 16px 33px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn--audit-cta:hover { background: #a8571f; transform: scale(1.04); }

/* Benefits */
.benefits { padding: 80px 24px; background: #1a1a1a; }
.benefits__inner { max-width: var(--container); margin: 0 auto; }
.benefits__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
.benefits__tag { color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.benefits__heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 16px;
}
.benefits__lead {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 14px;
}
.benefits__sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  font-weight: 300;
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #222;
  border: 1px solid #222;
  border-radius: 0;
  overflow: hidden;
}
.benefits__item {
  display: flex;
  gap: 16px;
  padding: 28px 24px;
  background: #1a1a1a;
  transition: background 0.25s ease;
}
.benefits__item:hover { background: #181818; }
.benefits__num {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  padding-top: 3px;
}
.benefits__body h3 {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
}
.benefits__body p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  font-weight: 300;
}
@media (max-width: 900px) {
  .benefits__layout { grid-template-columns: 1fr; gap: 36px; }
  .benefits__grid { grid-template-columns: 1fr; }
}

/* Stats */
.stats-section { background: #0d0d0f; padding: 48px 48px; overflow: hidden; }
.stats-section__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.stats-section__left {
  margin-bottom: 36px;
}
.stats-section__left h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  max-width: 520px;
}
.stats-section__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stats-item {
  padding-right: 24px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.1);
  cursor: default;
}
.stats-item:first-child { border-left: none; padding-left: 0; }
.stats-item__num {
  font-size: clamp(36px, 4.2vw, 60px);
  display: block;
  overflow: hidden;
  height: 0.90em;
  padding-top: 0.20em;
  margin-bottom: 20px;
}
.stats-item__num > span:first-child {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  transform: translateY(10%);
  transform-origin: bottom left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.stats-item:hover .stats-item__num > span:first-child {
  transform: translateY(-8%) scale(1.04);
}
.stats-item__unit {
  font-size: 0.5em;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  vertical-align: baseline;
}
.stats-item__bottom { position: relative; min-height: 48px; }
.stats-item__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}
.stats-item:hover .stats-item__label { opacity: 0; }
.stats-item__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.stats-item:hover .stats-item__desc { opacity: 1; }
.stats-item p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  max-width: 340px;
}

/* Security */
.security { padding: 48px 24px 28px; }

/* Dev steps */
.dev-steps { padding: 80px 24px; background: var(--gray-50); }
.dev-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  max-width: 1140px;
  margin: 0 auto;
}
.dev-step__num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.dev-step h3 { font-size: 15px; margin-bottom: 8px; }
.dev-step p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* Final CTA points */
.final-cta__points {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  text-align: left;
}
.final-cta__points h4 { color: var(--white); font-size: 15px; margin-bottom: 8px; }
.final-cta__points p { color: var(--gray-400); font-size: 13.5px; line-height: 1.6; margin-bottom: 0; }

@media (max-width: 900px) {
  .dev-steps__grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta__points { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 720px) {
  .dev-steps__grid { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; gap: 20px 0; }
  .stat-row__item { flex: 0 0 50%; }
  .stat-row__item:nth-child(2) { border-left: 1px solid var(--gray-200); }
  .stat-row__item:nth-child(3) { padding-left: 0; border-left: none; }
}

/* CTA split */
.cta-split { padding: 20px 24px 80px; }
.cta-split__row {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 24px;
  height: 400px;
}
.cta-split__media {
  height: 100%;
  margin: 0;
}
.cta-split__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 56px 48px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cta-split__card:hover { transform: translateY(-10px); }
.cta-split__media-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--gray-200);
}
.cta-split__scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.82);
}
.cta-split__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding-bottom: 60px;
}
.cta-split__eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}
.cta-split__text {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}
.cta-split__text strong {
  display: block;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-split__arrow {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-split__arrow svg {
  width: 22px;
  height: 22px;
  stroke: var(--black);
  fill: none;
  stroke-width: 2;
}

@media (max-width: 900px) {
  .cta-split__row { grid-template-columns: 1fr; height: auto; }
  .cta-split__media { height: 220px; }
  .cta-split__card { padding: 36px; min-height: 320px; }
}

/* ── Services flyout popup ── */
.footer__col h4[data-services-toggle] { cursor: pointer; display: flex; align-items: center; gap: 6px; user-select: none; }
.footer__col h4[data-services-toggle]::after { content: '↑'; font-size: 10px; opacity: 0.5; transition: transform 0.2s; display: inline-block; }
.footer__col h4[data-services-toggle].is-open::after { transform: rotate(180deg); }

.services-flyout { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; pointer-events: none; }
.services-flyout__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.services-flyout__panel { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 0; padding: 28px 24px 40px; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); pointer-events: none; box-shadow: 0 -8px 48px rgba(0,0,0,0.12); }
.services-flyout.is-open .services-flyout__backdrop { opacity: 1; pointer-events: all; }
.services-flyout.is-open .services-flyout__panel { transform: translateY(0); pointer-events: all; }
.services-flyout.is-open { pointer-events: all; }

.services-flyout__handle { width: 36px; height: 4px; background: #ddd; border-radius: 2px; margin: 0 auto 24px; }
.services-flyout__title { font-size: 11px; color: #aaa; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.services-flyout__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 800px; margin: 0 auto; }
.services-flyout__item { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: #f5f5f4; border-radius: 0; text-decoration: none; color: #1a1a1a; transition: background 0.2s, transform 0.2s; border: 1px solid transparent; }
.services-flyout__item:hover { background: #1a1a1a; color: #fff; transform: translateY(-2px); }
.services-flyout__item:hover .services-flyout__item-desc { color: rgba(255,255,255,0.5); }
.services-flyout__item-name { font-size: 14px; font-weight: 400; }
.services-flyout__item-desc { font-size: 11.5px; color: #999; font-weight: 300; }
@media (max-width: 600px) { .services-flyout__grid { grid-template-columns: 1fr 1fr; } }

/* ── Nav services dropdown ── */
[data-services-nav] { position: relative; }
[data-services-nav]::after { content: ' ↓'; font-size: 10px; opacity: 0.5; }

.nav-services-drop { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%); width: 440px; background: #fff; border: 1px solid #e8e8e6; border-radius: 0; box-shadow: 0 16px 48px rgba(0,0,0,0.12); padding: 16px; z-index: 500; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease; }
.nav-services-drop.is-open { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-services-drop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-services-drop__item { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 0; text-decoration: none; color: #1a1a1a; transition: background 0.15s; }
.nav-services-drop__item:hover { background: #f5f5f4; }
.nav-services-drop__item-name { font-size: 14px; font-weight: 400; }
.nav-services-drop__item-desc { font-size: 12px; color: #999; font-weight: 300; }

/* ── ROI Automations block (index.html) ── */
.roi-autos { display: flex; flex-direction: column; gap: 48px; padding: 100px max(24px, calc((100vw - var(--container)) / 2 + 24px)); }

.roi-autos__header { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.roi-autos__title { font-size: clamp(28px, 4vw, 40px); font-weight: 400; color: var(--black); line-height: 1.2; }
.roi-autos__desc { font-size: 15px; color: var(--gray-600); line-height: 1.6; text-align: right; }

/* accordion list */
.roi-autos__list { display: flex; flex-direction: column; border-top: 1px solid #e8e8e6; }

.roi-row { display: grid; grid-template-columns: 140px 340px 1fr; gap: 0; border-bottom: 1px solid #e8e8e6; cursor: pointer; overflow: hidden; transition: background 0.2s; }
.roi-row:hover { background: #fafaf9; }
.roi-row.is-active { background: #fafaf9; }

/* image column */
.roi-row__img { width: 140px; min-height: 120px; max-height: 120px; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.roi-row__img img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; display: block; }
.roi-row.is-active .roi-row__img { max-height: 400px; }
.roi-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(20%); transition: filter 0.3s; }
.roi-row:not(.is-active) .roi-row__img img { filter: grayscale(60%) brightness(0.85); }

/* number column */
.roi-row__num-col { display: flex; align-items: flex-start; padding: 28px 0 28px 32px; }
.roi-row__num { font-size: 13px; color: var(--gray-400); font-weight: 400; padding-top: 4px; }

/* main content */
.roi-row__main { padding: 28px 32px 28px 0; display: flex; flex-direction: column; gap: 0; }
.roi-row__top { display: flex; align-items: center; }
.roi-row__title { font-size: 18px; font-weight: 400; color: var(--black); line-height: 1.3; }

/* expandable content */
.roi-row__expand { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.roi-row__expand > * { overflow: hidden; }
.roi-row.is-active .roi-row__expand { grid-template-rows: 1fr; }

/* wrap everything inside expand in a div for overflow:hidden to work */
.roi-row__expand-inner { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; padding-bottom: 4px; }
.roi-row__text { font-size: 13.5px; color: var(--gray-600); line-height: 1.7; max-width: 520px; }
.roi-row__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.roi-row__list li { font-size: 13px; color: var(--gray-600); padding-left: 14px; position: relative; }
.roi-row__list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.roi-row__btn { align-self: flex-start; font-size: 13px; padding: 10px 20px; margin-top: 4px; }

/* Scenarios — left heading, right accordion (60%) */
.scenarios-split {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.scenarios-split__left {
  flex: 0 0 35%;
  position: sticky;
  top: 80px;
}
.scenarios-split__right {
  flex: 0 0 60%;
}
#scenariosList .roi-row {
  grid-template-columns: 80px 1fr 140px;
  align-items: center;
}
#scenariosList .roi-row.is-active {
  align-items: stretch;
}
#scenariosList .roi-row__img {
  order: 3;
  width: 140px;
  height: 80px;
  min-height: unset;
  max-height: unset;
  align-self: center;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#scenariosList .roi-row.is-active .roi-row__img {
  height: 100%;
  align-self: stretch;
}
#scenariosList .roi-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#scenariosList .roi-row__num-col { order: 1; padding: 6px 0; }
#scenariosList .roi-row__main { order: 2; padding: 6px 24px 6px 0; }
#scenariosList .roi-row.is-active .roi-row__num-col { padding: 14px 0; }
#scenariosList .roi-row.is-active .roi-row__main { padding: 14px 24px 14px 0; }
#scenariosList .roi-row__img { min-height: 20px; }
#scenariosList .roi-row__text { max-width: none; }
#scenariosList .roi-row__expand-inner { padding-top: 0; padding-bottom: 0; }
#scenariosList .roi-row.is-active .roi-row__expand-inner { padding-top: 14px; padding-bottom: 16px; }

@media (max-width: 860px) {
  .roi-autos { grid-template-columns: 1fr; padding: 64px 24px; gap: 40px; }
  .roi-autos__left { position: static; }
  .pains__cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile fixes (≤720px) ── */
@media (max-width: 720px) {

  /* ── Hero dark ── */
  .hero h1 { font-size: clamp(24px, 6.5vw, 36px); }
  .hero__subtext { font-size: 14px; }
  .hero__btns { flex-direction: column; align-items: center; }

  /* ── Pains cards: 2 col → 1 col full-width ── */
  .pains__cards { grid-template-columns: 1fr; }
  .pains__card { min-height: 140px; }
  .pains__card h3, .pains__card p { max-width: 85%; }
  .pains__card h3 { height: auto; margin-bottom: 12px; font-size: 15px; }

  /* ── Stats: [×число  Скорость]  [описание справа, всегда видно] ── */
  .stats-section { padding: 48px 20px; }
  .stats-section__grid { grid-template-columns: 1fr; gap: 0; }
  .stats-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-left: none;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .stats-item:first-child { border-top: none; }
  /* большое число идёт первым */
  .stats-item__num {
    order: 1;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    flex-shrink: 0;
  }
  .stats-item__num > span {
    font-size: clamp(36px, 9vw, 52px);
    line-height: 1;
    transform: none !important;
  }
  /* bottom прозрачный — дети в flex напрямую */
  .stats-item__bottom { display: contents; }
  /* метка после числа */
  .stats-item__label {
    order: 2;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 1 !important;
  }
  /* описание справа, всегда видно */
  .stats-item__desc {
    order: 3;
    margin-left: auto;
    text-align: right;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    max-width: 44%;
    /* перебиваем десктопные скрытые стили */
    position: static !important;
    opacity: 1 !important;
    transition: none !important;
  }

  /* ── Process steps: вертикальная анимированная линия, номера крупно ── */
  .process__steps {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-top: 0 !important;
  }

  /* трек скрываем */
  .process__track { display: none !important; }

  /* серая вертикальная линия по левому краю */
  .process__steps::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
    border-radius: 1px;
    display: block !important;
  }
  /* оранжевая линия поверх — растёт через CSS variable, управляемая JS */
  .process__steps::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    width: 2px;
    height: var(--progress, 0%);
    background: var(--accent);
    border-radius: 1px;
    transition: height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    display: block !important;
  }

  .step {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 4px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
  }
  .step:last-child { border-bottom: none; }

  /* номер — левая колонка, крупный */
  .step__num {
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--gray-200) !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
    z-index: 2;
    margin-bottom: 0 !important;
    transition: color 0.3s ease !important;
    letter-spacing: -0.02em;
    position: relative;
  }
  .step.is-active .step__num { color: var(--accent) !important; }

  .step__dot { display: none; }

  /* заголовок */
  .step h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px !important;
    font-weight: 500;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: 0 !important;
    color: #1a1a1a;
  }

  /* описание — всегда видно */
  .step p {
    grid-column: 2;
    grid-row: 2;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    background: none !important;
    color: var(--gray-600) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    width: auto !important;
    pointer-events: none;
    transition: none !important;
    white-space: normal !important;
  }
  .step p::after { display: none !important; }

  /* ── ROI accordion header: 2 → 1 col ── */
  .roi-autos__header { grid-template-columns: 1fr; gap: 16px; }
  .roi-autos__desc { text-align: left; }

  /* ── ROI row: hide image column ── */
  .roi-row { grid-template-columns: 48px 1fr !important; }
  .roi-row__img { display: none !important; }
  .roi-row__num-col { padding: 20px 0 !important; }
  .roi-row__main { padding: 20px 16px 20px 0 !important; }

  /* ── Scenarios split: stack ── */
  .scenarios-split { flex-direction: column !important; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .scenarios-split__left { position: static; flex: none; width: 100%; }
  .scenarios-split__right { flex: none; width: 100%; }

  /* ── Services header wrap ── */
  .services.container > div:first-child { flex-wrap: wrap; gap: 16px !important; }
  .services.container > div:first-child p { text-align: left !important; width: 100%; }

  /* ── FAQ: 2-col → 1-col ── */
  .faq2 { padding: 60px 24px; }
  .faq2__inner { grid-template-columns: 1fr; gap: 32px; }
  .faq2__heading { font-size: clamp(36px, 10vw, 56px); position: static; }

  /* ── Footer: flex → column ── */
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { gap: 24px; }

  /* ── CTA ── */
  .final-cta { padding: 60px 24px; }
  .final-cta__inner { grid-template-columns: 1fr; gap: 48px; }
  .final-cta__direct-btns { max-width: 100%; }
  .final-cta__contacts { margin-top: 32px; }

  /* ── Nav lang ── */
  .nav-lang { display: flex; }
}

/* ═══════════════════════════════════════════
   CASES
═══════════════════════════════════════════ */
.cases-section {
  background: #0d0d0f;
  padding: 64px 0 56px;
  overflow: hidden;
}

.cases-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  align-items: start;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  margin-bottom: 52px;
}
.cases-intro__heading {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cases-intro__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* вторая строчка — тот же визуальный размах, меньший кегль */
.cases-intro__sub {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
  margin-top: 4px;
  white-space: nowrap;
}
.cases-intro__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding-top: 6px;
}
.cases-intro__text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

/* nav buttons */
.cases-nav { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.cases-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 18px;
  line-height: 1;
}
.cases-nav button:hover { background: rgba(255,255,255,0.18); }
.cases-nav button:disabled { opacity: 0.25; pointer-events: none; }

/* horizontal scroll rail */
.cases-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1140px) / 2 + 24px));
  padding-inline: max(24px, calc((100vw - 1140px) / 2 + 24px));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.cases-rail::-webkit-scrollbar { display: none; }

/* card */
.case-card {
  position: relative;
  flex: 0 0 auto;
  width: min(80vw, 820px);
  aspect-ratio: 20/9;
  border-radius: 0;
  overflow: hidden;
  background: #0b0b0d;
  scroll-snap-align: start;
  isolation: isolate;
  text-decoration: none;
  color: #fff;
  display: block;
}

/* background image */
.case-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.16,1,.3,1),
              filter .5s cubic-bezier(.16,1,.3,1);
}
.case-card:hover > img {
  transform: scale(1.03);
  filter: brightness(0.75);
}

/* gradient overlay — сильный снизу */
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(0,0,0,0.92),
    rgba(0,0,0,0.48) 42%,
    rgba(0,0,0,0.05) 70%
  );
  z-index: 1;
}

/* body — абсолютно внизу, сетка 1fr / auto */
.case-card__body {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px 32px;
  padding: clamp(22px, 3vw, 40px);
}

.case-card__metric {
  display: block;
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  background: linear-gradient(170deg, #fff 30%, var(--accent, #c0662d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.case-card__caption {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.case-card__tag {
  margin-top: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.case-card__title {
  margin-top: 5px;
  font-size: clamp(18px, 12px + 1.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.case-card__desc {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* frosted glass pill CTA */
.case-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s;
  align-self: flex-end;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.case-card:hover .case-card__cta {
  background: var(--accent, #c0662d);
  border-color: transparent;
}

@media (max-width: 700px) {
  .case-card { width: min(90vw, 480px); border-radius: 0; aspect-ratio: unset; min-height: 320px; }
  .case-card__cta { display: none; }
  .case-card__tag { margin-top: 12px; }
  .cases-section { padding: 48px 0 40px; }
  .cases-intro { grid-template-columns: 1fr; gap: 20px; }
  .cases-intro__title, .cases-intro__sub { white-space: normal !important; }
}

/* ── light modifier (cases-section on white bg) ── */
.cases-section--light {
  background: #fff;
}
.cases-section--light .cases-intro__title {
  color: #000;
}
.cases-section--light .cases-nav button {
  background: rgba(0,0,0,0.06);
  color: #000;
}
.cases-section--light .cases-nav button:hover {
  background: rgba(0,0,0,0.14);
}

/* ── PRODUCTS (sticky-scroll accordion) ─────────────────────── */
.products-section {
  background: #fff;
}
.products-sticky-wrap {
  /* 100vh per item + 100vh buffer = 7 × 100vh for 6 items */
  height: 700vh;
}
.products-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.products-sticky .container {
  width: 100%;
}
.products-title {
  margin: 0 0 36px;
  text-transform: uppercase;
}
.products-list {
  border-top: 1px solid #e3e1db;
}
.product-item {
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  align-items: center;
  gap: 15px 24px;
  padding: 22px 0;
  border-bottom: 1px solid #e3e1db;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.3s;
}
.product-item__num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--black, #1a1a1a);
  opacity: 0.2;
  transition: color 0.45s, opacity 0.45s;
  line-height: 1;
  align-self: start;
  padding-top: 6px;
}
.product-item__title {
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  opacity: 0.28;
  margin: 0;
  transition: opacity 0.45s;
}
.product-item__text {
  opacity: 0;
  max-height: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0,0,0,0.55);
  font-weight: 300;
  overflow: hidden;
  transition: opacity 0.45s, max-height 0.45s, margin-top 0.45s;
}
.product-item__arrow {
  font-size: 20px;
  color: var(--black, #1a1a1a);
  opacity: 0;
  transition: opacity 0.45s, color 0.45s;
  align-self: start;
  padding-top: 8px;
}
/* Active state — driven by JS via .is-active class */
.product-item.is-active .product-item__num {
  color: var(--accent, #c0662d);
  opacity: 1;
}
.product-item.is-active .product-item__title {
  opacity: 1;
}
.product-item.is-active .product-item__text {
  opacity: 1;
  max-height: 80px;
  margin-top: 8px;
}
.product-item.is-active .product-item__arrow {
  opacity: 1;
  color: var(--accent, #c0662d);
}
/* Mobile: disable sticky, show hover instead */
@media (max-width: 768px) {
  .products-sticky-wrap { height: auto; }
  .products-sticky {
    position: static;
    height: auto;
    padding: 60px 0 72px;
  }
  .product-item { grid-template-columns: 48px 1fr; }
  .product-item__arrow { display: none; }
  .product-item__num { font-size: 22px; }
  .product-item__title { font-size: 22px; }
  .product-item:hover .product-item__num { color: var(--accent, #c0662d); opacity: 1; }
  .product-item:hover .product-item__title { opacity: 1; }
  .product-item:hover .product-item__text { opacity: 1; max-height: 80px; margin-top: 8px; }
}

/* ── HOW WE WORK ────────────────────────────────────────────── */
.howwe-section {
  background: #000;
  padding: 72px 0 80px;
  color: #fff;
}
.howwe-title {
  color: #fff;
  font-family: 'Golos Text', sans-serif;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 64px;
}
.howwe-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
/* horizontal connecting line */
.howwe-steps::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.12);
  z-index: 0;
}
/* animated fill line */
.howwe-steps__fill {
  position: absolute;
  top: 6px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--accent, #c0662d);
  z-index: 1;
}
.howwe-steps.is-animating .howwe-steps__fill {
  animation: howwe-fill 5.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes howwe-fill {
  0%   { width: 0 }
  5%   { width: 0 }
  20%  { width: 25% }
  29%  { width: 25% }
  45%  { width: 50% }
  54%  { width: 50% }
  70%  { width: 75% }
  79%  { width: 75% }
  100% { width: 100% }
}
.howwe-step {
  padding-right: 32px;
  position: relative;
}
.howwe-step__track {
  height: 14px;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.howwe-step__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #000;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease;
}
.howwe-step.is-lit .howwe-step__dot {
  background: var(--accent, #c0662d);
  border-color: var(--accent, #c0662d);
  transform: scale(1.25);
}
.howwe-step__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
  font-family: monospace;
}
.howwe-step.is-lit .howwe-step__label {
  color: var(--accent, #c0662d);
}
.howwe-step__name {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 200;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 12px;
  font-family: 'Golos Text', sans-serif;
}
.howwe-step__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin: 0;
  font-weight: 300;
}
/* vertical divider between steps */
.howwe-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 16px;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.06);
}
@media (max-width: 860px) {
  .howwe-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .howwe-steps::before { display: none; }
  .howwe-steps__fill { display: none; }
  .howwe-step::after { display: none; }
}
@media (max-width: 500px) {
  .howwe-steps { grid-template-columns: 1fr; }
}

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.about-section {
  padding: 80px 0;
  background: #fff;
}
.about-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.about-section__left {
  display: flex;
  flex-direction: column;
}
.about-section__h2 {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  margin: 0 0 24px;
}
.about-section__left p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  margin-bottom: 16px;
}
.about-team-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about-team-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e3e1db;
  flex: 1;
}
.about-team-row:first-child {
  border-top: 1px solid #e3e1db;
}
.about-team-row__photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.about-team-row__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--black);
}
.about-team-row__role {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  margin-top: 3px;
}
@media (max-width: 768px) {
  .about-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .about-section__h2 { white-space: normal; font-size: clamp(18px, 5vw, 26px); }
}
