/* AI NextStep Business - Monopo-inspired editorial system */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-obsidian: #000000;
  --color-paper: #ffffff;
  --color-inkstone: #181818;
  --color-felt-gray: #6d6d6d;
  --color-slate-pill: #636363;
  --color-ash-mist: #9a9a9a;
  --border-light: rgba(0, 0, 0, 0.18);
  --border-dark: rgba(255, 255, 255, 0.3);
  --font-roobert: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --page-max-width: 1078px;
  --ease-patient: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-paper);
  color: var(--color-obsidian);
  font-family: var(--font-roobert);
  font-size: 18px;
  line-height: 1.21;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--color-obsidian);
  color: var(--color-paper);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

button,
a {
  transition: color 0.8s var(--ease-patient), border-color 0.8s var(--ease-patient), opacity 0.8s var(--ease-patient), transform 1.25s var(--ease-patient);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-140%);
  background: var(--color-paper);
  color: var(--color-obsidian);
  border: 1px solid var(--color-obsidian);
  padding: 11px 33px;
  border-radius: 75px;
  font-size: 16px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 66px;
  color: var(--header-color, var(--color-paper));
  mix-blend-mode: difference;
}

.nav-shell {
  height: 100%;
  max-width: none;
  padding: 18px 28px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 28px;
}

.logo {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 400;
  white-space: nowrap;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  line-height: 1.19;
  font-weight: 400;
}

.lang-btn,
.menu-toggle {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lang-btn {
  opacity: 0.56;
}

.lang-btn.active,
.lang-btn:hover {
  opacity: 1;
}

.nav-links {
  list-style: none;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 11px;
  line-height: 1.36;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.58;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 30px;
  height: 22px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.menu-toggle span:nth-child(1) { top: 5px; }
.menu-toggle span:nth-child(2) { top: 15px; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-obsidian);
  color: var(--color-paper);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-canvas,
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  z-index: -3;
  opacity: 0.96;
}

.hero-media {
  z-index: -2;
  background:
    radial-gradient(circle at 20% 22%, rgba(160, 224, 171, 0.88), transparent 25%),
    radial-gradient(circle at 56% 40%, rgba(255, 172, 46, 0.88), transparent 30%),
    radial-gradient(circle at 79% 60%, rgba(165, 45, 37, 0.92), transparent 33%),
    linear-gradient(125deg, #08130d, #080806 44%, #210904);
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.2);
}

.hero-title {
  width: min(100%, 1280px);
  padding: 0 28px;
  text-align: center;
  font-size: clamp(72px, 15vw, 225px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-kicker {
  position: absolute;
  left: 28px;
  bottom: 28px;
  max-width: 310px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 75px;
  padding: 11px 33px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
}

.pill.dark {
  color: var(--color-paper);
  border-color: var(--border-dark);
}

.pill.light {
  color: var(--color-obsidian);
  border-color: var(--color-obsidian);
}

.pill:hover {
  transform: translateY(-3px);
  opacity: 0.72;
}

.scroll-badge {
  position: absolute;
  left: 24px;
  bottom: 112px;
  width: 86px;
  height: 86px;
  animation: spin 18s linear infinite;
  opacity: 0.9;
}

.scroll-badge text {
  fill: var(--color-paper);
  font-size: 9px;
  font-family: var(--font-roobert);
  letter-spacing: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.section {
  padding: 152px 28px;
}

.section.compact {
  padding-top: 88px;
  padding-bottom: 88px;
}

.container {
  width: min(100%, var(--page-max-width));
  margin: 0 auto;
}

.eyebrow {
  display: block;
  margin-bottom: 40px;
  font-size: 12px;
  line-height: 1.19;
  color: var(--color-felt-gray);
  text-transform: uppercase;
}

.lede {
  max-width: 980px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.1;
  font-weight: 300;
  text-wrap: balance;
}

html.lang-ru .lede {
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.16;
}

.statement {
  font-size: clamp(56px, 10vw, 94px);
  line-height: 0.92;
  font-weight: 400;
  text-wrap: balance;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 68px;
  align-items: start;
}

.editorial-grid.intro-grid {
  grid-template-columns: 1fr;
  gap: 40px;
}

.editorial-grid.intro-grid .lede {
  max-width: 1078px;
}

html.lang-ru .editorial-grid.intro-grid .lede {
  max-width: 980px;
}

.copy-stack {
  display: grid;
  gap: 28px;
}

.copy-stack p,
.row-copy,
.text-muted {
  color: var(--color-felt-gray);
}

.copy-stack p {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.58;
}

.service-list,
.case-list,
.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-light);
}

.service-row,
.case-row,
.process-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.row-index,
.row-title {
  font-size: 18px;
  line-height: 1.21;
  font-weight: 400;
}

.row-copy {
  font-size: 16px;
  line-height: 1.58;
}

.dark-band {
  background: var(--color-obsidian);
  color: var(--color-paper);
}

.dark-band .eyebrow,
.dark-band .text-muted,
.dark-band .row-copy,
.dark-band .copy-stack p {
  color: rgba(255, 255, 255, 0.62);
}

.dark-band .service-list,
.dark-band .case-list,
.dark-band .process-list,
.dark-band .service-row,
.dark-band .case-row,
.dark-band .process-row {
  border-color: rgba(255, 255, 255, 0.18);
}

.media-strip {
  min-height: 520px;
  background:
    radial-gradient(circle at 22% 38%, rgba(160, 224, 171, 0.72), transparent 26%),
    radial-gradient(circle at 58% 28%, rgba(255, 172, 46, 0.64), transparent 31%),
    radial-gradient(circle at 78% 68%, rgba(165, 45, 37, 0.78), transparent 35%),
    #090909;
  position: relative;
  overflow: hidden;
}

.media-strip::before,
.media-strip::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(102deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 22px);
  opacity: 0.18;
  transform: rotate(-7deg);
}

.media-strip::after {
  background: radial-gradient(circle at 50% 50%, transparent 0 24%, rgba(0, 0, 0, 0.42) 58%, rgba(0, 0, 0, 0.78));
  opacity: 1;
  transform: none;
}

.work-grid {
  display: grid;
  gap: 46px;
}

.work-item {
  display: grid;
  gap: 14px;
}

.work-visual {
  min-height: clamp(260px, 42vw, 540px);
  background: var(--color-obsidian);
  position: relative;
  overflow: hidden;
}

.work-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95) 1px, transparent 1px) 0 0 / 9% 100%,
    linear-gradient(0deg, rgba(255,255,255,0.22) 1px, transparent 1px) 0 0 / 100% 20%,
    radial-gradient(circle at var(--x, 35%) var(--y, 42%), rgba(160,224,171,0.72), transparent 21%),
    radial-gradient(circle at 58% 34%, rgba(255,172,46,0.58), transparent 25%),
    radial-gradient(circle at 78% 62%, rgba(165,45,37,0.68), transparent 31%);
  opacity: 0.92;
}

.work-visual::after {
  content: attr(data-label);
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  line-height: 1.19;
  text-transform: uppercase;
}

.work-caption {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  font-size: 18px;
}

.site-footer {
  padding: 88px 28px 34px;
  background: var(--color-paper);
  color: var(--color-obsidian);
}

.footer-grid {
  width: min(100%, var(--page-max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 46px;
  align-items: start;
}

.footer-title {
  font-size: 39px;
  line-height: 1.19;
  font-weight: 400;
}

.footer-block,
.footer-links {
  font-size: 11px;
  line-height: 1.36;
  color: var(--color-felt-gray);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.cookie-banner {
  position: fixed;
  z-index: 1500;
  left: 28px;
  top: 84px;
  width: min(360px, calc(100vw - 56px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 22px;
  background: rgba(55, 55, 55, 0.78);
  color: var(--color-paper);
  font-family: system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.32;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner .pill {
  min-height: 38px;
  padding: 8px 24px;
  font-size: 12px;
  color: var(--color-paper);
  border-color: var(--color-paper);
  background: rgba(99, 99, 99, 0.6);
}

[data-lang] {
  display: none;
}

[data-lang].is-active-lang,
html.lang-en [data-lang="en"],
html.lang-ru [data-lang="ru"] {
  display: revert;
}

html.lang-en .service-row[data-lang="en"],
html.lang-ru .service-row[data-lang="ru"],
html.lang-en .case-row[data-lang="en"],
html.lang-ru .case-row[data-lang="ru"],
html.lang-en .process-row[data-lang="en"],
html.lang-ru .process-row[data-lang="ru"] {
  display: grid;
}

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

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: var(--color-paper);
    color: var(--color-obsidian);
    mix-blend-mode: normal;
    padding: 92px 28px 28px;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(100%);
    font-size: 39px;
    line-height: 1.19;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .site-header:has(.nav-links.active) {
    mix-blend-mode: normal;
    color: var(--color-obsidian);
  }

  .editorial-grid,
  .service-row,
  .case-row,
  .process-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-row,
  .case-row,
  .process-row {
    gap: 14px;
  }

  .scroll-badge {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav-shell,
  .hero-title,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lang-switcher {
    gap: 8px;
  }

  .hero {
    place-items: center start;
  }

  .hero-title {
    text-align: left;
    font-size: clamp(58px, 22vw, 96px);
  }

  .hero-kicker,
  .hero-actions {
    left: 18px;
    right: 18px;
  }

  .hero-kicker {
    bottom: 108px;
  }

  .hero-actions {
    justify-content: flex-start;
    bottom: 26px;
  }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .lede {
    font-size: clamp(36px, 12vw, 56px);
  }

  .statement {
    line-height: 0.9;
  }

  .media-strip {
    min-height: 360px;
  }

  .work-caption {
    display: grid;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
}
