/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: #0b0b0a;
  font-family: 'Onest', 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
input, textarea, button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* Единый вертикальный ритм секций. Меняется в одном месте — здесь
   и в мобильном блоке внизу файла. Разрыв между двумя соседними
   секциями = --sec-py * 2. */
:root { --sec-py: 48px; }

.sec {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.sigma-m {
  display: inline-block;
  transform: scaleX(-1) rotate(90deg);
  background: linear-gradient(135deg, #7c3aed, #45b8cc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #9a9a9a;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.eyebrow-light { color: rgba(255,255,255,0.25); }
.eyebrow-dark { color: rgba(255,255,255,0.22); }

.section-h {
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #0b0b0a;
  line-height: 1;
  margin-bottom: 12px;
}
.section-h-light { color: #fff; }

.section-lead {
  font-size: 15px;
  color: #9a9a9a;
  max-width: 500px;
  line-height: 1.45;
  margin-bottom: 44px;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2535 0%, #2d4a6a 50%, #1e3550 100%);
  position: relative;
  object-fit: cover;
  display: block;
}
.placeholder-img::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.02em;
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(90deg, #45b8cc, #7b8ee8);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}
.btn-gradient:hover { opacity: 0.85; }

.btn-gradient-dark {
  background: linear-gradient(90deg, #45b8cc, #7b8ee8);
  color: #0b0b0a;
  border: none;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s;
  font-family: inherit;
}
.btn-gradient-dark:hover { opacity: 0.85; }

.btn-ghost-light {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); }

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn-outline-light:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0; height: 48px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.nav.at-top::after {
  opacity: 1;
  background: linear-gradient(to bottom, rgba(2,5,11,0.35), transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-logo {
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.4s;
}
.nav-links {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-a {
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-weight: 600; text-decoration: none; }

.nav.at-top { background: rgba(2,5,11,0.6); border-bottom-color: rgba(255,255,255,0.04); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav.scrolled { background: rgba(255,255,255,0.95); border-bottom-color: rgba(0,0,0,0.07); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav.at-top .nav-logo { color: #fff; }
.nav.scrolled .nav-logo { color: #0b0b0a; }
.nav.at-top .nav-a { color: rgba(255,255,255,0.5); }
.nav.scrolled .nav-a { color: #6b6b6b; }
.nav.scrolled .nav-a:hover { color: #0b0b0a; }
.nav.at-top .nav-a:hover { color: #fff; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  --hero-bg: #02050B;
  --hero-navy: #04101F;
  --hero-blue: #0E3D83;
  --hero-glow: #1F6ED4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Повторяет вертикальный градиент левой части hero-cover.jpg,
     чтобы картинка стыковалась с фоном без шва. */
  background: linear-gradient(
    to bottom,
    #0B1016 0%,
    #0B1016 16%,
    #0D1627 27%,
    #0D2041 44%,
    #102A5B 61%,
    #113376 78%,
    #123579 97%,
    #123579 100%
  );
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(2, 6, 14, 0.62) 0%,
    rgba(2, 6, 14, 0.34) 28%,
    rgba(2, 6, 14, 0.10) 46%,
    transparent 60%
  );
}
.hero > * { position: relative; z-index: 1; }
.hero-bg, .hero-bg-radial, .hero-top-fade { display: none; }
.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, rgba(2,5,11,0.55));
  z-index: 2;
  pointer-events: none;
}
.hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('images/hero-cover.jpg');
  background-size: auto 86%;
  background-position: right bottom;
  background-repeat: no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 24%),
    linear-gradient(to bottom, transparent 0%, #000 20%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 24%),
    linear-gradient(to bottom, transparent 0%, #000 20%);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .hero-cover {
    background-size: cover;
    background-position: 72% center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero::before {
    background: linear-gradient(
      170deg,
      rgba(2, 6, 14, 0.88) 0%,
      rgba(2, 6, 14, 0.72) 42%,
      rgba(2, 6, 14, 0.55) 70%,
      rgba(2, 6, 14, 0.7) 100%
    );
  }
}
.hero-content {
  padding-top: 168px;
  padding-bottom: 64px;
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
}
.hero-left { max-width: 640px; text-align: left; }
.hero-eyebrow { margin-bottom: 28px; }
.hero-eyebrow span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: rgba(150,175,220,0.55);
  text-transform: uppercase;
  max-width: 480px;
}
.hero-title {
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
  max-width: 620px;
  margin: 0 0 48px;
}
.hero-title span { display: block; }
.hero-btns {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-btns button { height: 58px; padding: 0 40px; font-size: 15px; }
@media (max-width: 900px) {
  .hero-content { padding-top: 140px; }
  .hero-title { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .hero-title span:nth-child(1),
  .hero-title span:nth-child(2) { display: inline; }
  .hero-title span:nth-child(1)::after { content: " "; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns button { width: 100%; height: 52px; padding: 0 24px; }
}
/* ==========================================================================
   STATS
   ========================================================================== */
.stats-section { background: #fff; }
.stats-wrap { padding-top: var(--sec-py); padding-bottom: var(--sec-py); }
.stats-g {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.stat-item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.stat-num {
  order: 0;
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #0b0b0a;
  line-height: 0.9;
  margin-bottom: 30px;
  white-space: nowrap;
}
.stat-unit { font-size: 0.32em; font-weight: 700; letter-spacing: -0.02em; margin-left: 0.1em; }
.stat-line { order: 1; border-top: 1px solid rgba(0,0,0,0.14); border-bottom: none; margin-bottom: 26px; }
.stat-label { order: 2; font-size: clamp(0.95rem, 1.1vw, 1.05rem); font-weight: 700; color: #0b0b0a; margin-bottom: 9px; line-height: 1.25; }
.stat-desc { order: 3; font-size: clamp(0.78rem, 0.9vw, 0.85rem); color: #9a9a9a; line-height: 1.45; }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker-section {
  padding: var(--sec-py) 0;
  overflow: hidden;
  background: #fff;
}
.ticker-intro { padding-bottom: 32px; }
.ticker-heading {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #0b0b0a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 620px;
}
.ticker-sub {
  font-size: 15px;
  font-weight: 400;
  color: #9a9a9a;
  line-height: 1.4;
  max-width: 520px;
  margin-top: 12px;
}
.ticker-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: mg-marquee 75s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes mg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 18px 14px 22px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ticker-item:hover { border-color: #45b8cc; background: #f0fbfd; box-shadow: 0 4px 16px rgba(69,184,204,0.12); }
.ticker-item span { font-size: 14px; font-weight: 600; color: #0b0b0a; white-space: nowrap; }
span.ticker-item-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(69,184,204,0.35);
  background: #f0fbfd;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #45b8cc;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ticker-item:hover span.ticker-item-icon { border-color: #45b8cc; color: #fff; background: #45b8cc; }
.ticker-hint {
  font-size: 12px;
  color: #b0b0b0;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.why-section { background: #fff; }
.why-section .sec { padding-top: var(--sec-py); padding-bottom: var(--sec-py); }
.why-g {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.why-card { background: #fff; padding: 32px; transition: background 0.2s; }
.why-card:hover { background: #eeeeee; }
.why-num { font-family: 'Onest', sans-serif; font-size: 12px; font-weight: 600; color: #c4c4c0; letter-spacing: 0.08em; margin-bottom: 14px; }
.why-title { font-family: 'Onest', sans-serif; font-size: 16px; font-weight: 700; color: #0b0b0a; margin-bottom: 8px; line-height: 1.3; }
.why-card p { font-family: 'Onest', sans-serif; font-size: 13px; color: #6b6b65; line-height: 1.5; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-section { background: #0d0d10; }
.services-section .sec { padding-top: var(--sec-py); padding-bottom: var(--sec-py); }
.services-section .section-h { margin-bottom: 12px; }
.svc-lead { font-family: 'Onest', sans-serif; font-size: 15px; color: rgba(255,255,255,0.4); line-height: 1.5; max-width: 520px; margin-bottom: 44px; }
.svc-cta { margin-top: 28px; }
.svc-cta span {
  font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7);
  cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.svc-cta span:hover { color: #45b8cc; border-color: #45b8cc; }
.svc-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.svc-card {
  background: #111114;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 170px;
  border: 1px solid transparent;
  transition: background 0.28s, border-color 0.28s;
}
.svc-card:hover {
  background: linear-gradient(160deg, #1a3a5c 0%, #1e4a6a 40%, #2a5a7e 100%);
  border-color: rgba(69,184,204,0.3);
}
.svc-card:hover .svc-label { color: #45b8cc; }
.svc-card:hover .svc-title { color: #fff; }
.svc-card:hover .svc-desc { color: rgba(255,255,255,0.55); }
.svc-label {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Onest', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.3);
  margin-bottom: 16px; transition: color 0.28s;
}
.svc-plus { color: #45b8cc; font-weight: 700; }
.svc-title { font-family: 'Onest', sans-serif; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 10px; transition: color 0.28s; }
.svc-desc { font-family: 'Onest', sans-serif; font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.55; transition: color 0.28s; }

/* ==========================================================================
   GRADIENT DIVIDER
   ========================================================================== */
.services-method-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0d10, #08080b);
}
.services-method-wrap > section { position: relative; z-index: 1; background: transparent; }
.gradient-divider {
  position: relative;
  height: clamp(80px, 7vw, 110px);
  margin-top: 24px;
  overflow: hidden;
  pointer-events: none;
}
.gradient-divider::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #45b8cc 12%, #328ac4 40%, #168eee 70%, #66c6ec 89%, transparent);
  opacity: 0.85;
}
.gradient-divider-glow {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background:
    radial-gradient(ellipse 24% 78% at 17% 0%, rgba(69,184,204,0.68), rgba(30,98,126,0.25) 42%, transparent 85%),
    radial-gradient(ellipse 39% 45% at 48% 0%, rgba(22,93,245,0.64), rgba(15,56,144,0.19) 48%, transparent 95%),
    radial-gradient(ellipse 23% 35% at 84% 0%, rgba(44,166,225,0.66), rgba(21,92,146,0.18) 52%, transparent 96%);
}
@media (max-width: 600px) {
  .gradient-divider { height: 64px; margin-top: 16px; }
}

/* ==========================================================================
   APPROACH
   ========================================================================== */
.approach-section { background: #08080b; overflow: hidden; }
.approach-section .sec { padding: var(--sec-py) 40px var(--sec-py); }
.approach-outer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 520px;
}
.approach-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 48px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.approach-title {
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.sigma-wrap { flex: 1; display: flex; align-items: center; justify-content: flex-start; padding: 32px 0; }
.sigma-big {
  display: inline-block;
  transform: scaleX(-1) rotate(90deg);
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: clamp(7rem, 14vw, 13rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(160deg, #45b8cc 0%, #7b8ee8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
}
.approach-left-note { font-size: 12px; color: rgba(255,255,255,0.22); line-height: 1.55; max-width: 200px; }
.approach-right { padding-left: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.approach-row {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.approach-row-num { display: flex; align-items: center; }
.approach-row-circle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(69,184,204,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.approach-row-title {
  font-family: 'Onest', sans-serif;
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
  color: #fff;
}
.approach-row-text { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.32); line-height: 1.4; }
.approach-row-chevron { font-size: 18px; text-align: right; }
.approach-result {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: start;
  gap: 24px;
  padding-top: 36px;
}
.approach-eq { font-size: 64px; font-weight: 700; color: rgba(255,255,255,0.35); line-height: 1; margin-top: 22px; }
.approach-result-title {
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #45b8cc, #7b8ee8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}
.approach-result-desc { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.32); line-height: 1.4; max-width: 480px; }

/* ==========================================================================
   CASES
   ========================================================================== */
.cases-section { background: #fff; }
.cases-section .sec { padding-top: var(--sec-py); padding-bottom: var(--sec-py); }
.cases-head { margin-bottom: 22px; }
.cases-head .section-lead {
  max-width: 680px;
  margin-bottom: 0;
  text-wrap: pretty;
}
.cases-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.case-chip-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #9a9a9a; text-transform: uppercase; margin-right: 6px; }
.case-chip {
  font-size: 12px; font-weight: 500; color: #555;
  border: 1px solid #e0e0e0; border-radius: 100px; padding: 7px 16px;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.case-chip:hover { border-color: #45b8cc; color: #0b0b0a; }
.case-chip.active { background: #0b0b0a; border-color: #0b0b0a; color: #fff; font-weight: 600; }

.cases-scroll-outer { position: relative; }
.cases-scroll { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.cases-scroll::-webkit-scrollbar { display: none; }
.cases-row { display: flex; gap: 14px; width: max-content; }
.case-card {
  position: relative;
  flex: 0 0 272px;
  height: 320px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a2535, #101823);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  transition: transform 0.22s ease;
}
.case-card:hover { transform: translateY(-4px); }
.case-card-illustrated { overflow: hidden; isolation: isolate; }
.case-card-illustrated .case-card-cutout {
  position: absolute; right: -28px; bottom: 8px;
  width: 190px; height: 235px; object-fit: contain;
  pointer-events: none; z-index: -2;
}
.case-card-illustrated::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,32,48,0.85), transparent 80%), linear-gradient(0deg, rgba(16,24,35,0.8), transparent 35%);
}
.case-card-illustrated .case-card-title { max-width: 78%; }
.case-card-illustrated .case-card-metric { text-shadow: 0 2px 12px #101823; }
.case-card-num {
  font-family: 'Onest', sans-serif;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.42);
  line-height: 1.45;
  max-width: 74%;
  display: block;
}
.case-card-title {
  font-family: 'Onest', sans-serif;
  font-size: 17px; font-weight: 700; color: #fff;
  line-height: 1.3; letter-spacing: -0.01em;
  margin-top: 14px;
  max-width: 84%;
}
/* стрелка в правом верхнем углу, как в референсе */
.case-card-arrow {
  position: absolute;
  top: 22px; right: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}
.case-card:hover .case-card-arrow { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
/* метрика прижата к низу: крупное число, единица в две строки рядом */
.case-card-metric { margin-top: auto; display: flex; align-items: flex-end; gap: 10px; }
.case-card-metric-num {
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: 52px; font-weight: 700; color: #fff;
  line-height: 0.82; letter-spacing: -0.03em;
}
.case-card-metric-unit {
  font-size: 11px; font-weight: 700; color: #fff;
  text-transform: uppercase; line-height: 1.25;
  max-width: 46px;
  padding-bottom: 5px;
}
.case-card-metric-fallback { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); }


.cases-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid #e0e0e0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #0b0b0a;
}
.cases-arrow-left { left: -8px; }
.cases-arrow-right { right: -8px; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-section { background: #fff; overflow: hidden; }
.team-sec { padding-top: var(--sec-py); padding-bottom: 0; }
.team-head { padding: 0 0 44px; }
.team-h {
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  color: #0b0b0a;
  line-height: 1;
}
.team-h-sub { color: #cccccc; font-weight: 400; }
.team-scroll-outer { position: relative; }
.team-scroll { overflow-x: auto; padding: 0 0 56px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.team-scroll::-webkit-scrollbar { display: none; }
.team-row { display: flex; gap: 14px; width: max-content; }
.team-card {
  flex: 0 0 272px;
  background: #f5f5f5;
  border-radius: 14px;
  padding: 26px;
  display: grid;
  grid-template-rows: 58px 150px 96px;
  row-gap: 18px;
  align-content: start;
  height: 410px;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.25s;
}
.team-card:hover { box-shadow: 0 8px 36px rgba(0,0,0,0.07); }
.team-card.founder {
  flex: 0 0 290px;
  background: #0b0b0a;
  border: none;
}
.team-card-top,
.team-card-top-single { min-height: 0; margin-bottom: 0; }
.team-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0; }
.team-card-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.team-card.founder .team-card-name { color: #fff; }
.team-card:not(.founder) .team-card-name { color: #0b0b0a; }
.team-card-role { font-size: 12px; }
.team-card.founder .team-card-role { color: rgba(255,255,255,0.35); }
.team-card:not(.founder) .team-card-role { color: #9a9a9a; }
.founder-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: #45b8cc; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid rgba(69,184,204,0.3); border-radius: 100px;
  white-space: nowrap; flex-shrink: 0; margin-left: 8px;
}
.team-card-avatar-wrap { flex: 0 0 150px; display: flex; align-items: flex-start; justify-content: center; }
.team-card-avatar {
  width: 112px; height: 112px; border-radius: 50%;
  background: #ebebeb; border: 1.5px dashed #d0d0d0;
  display: flex; align-items: center; justify-content: center;
}
.team-card-avatar span { font-size: 22px; font-weight: 700; color: #c0c0c0; }
.team-card-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 8%; }
.team-card-avatar.has-photo { background: none; border: 1.5px solid rgba(0,0,0,0.08); overflow: hidden; }
.team-card.founder .team-card-avatar { width: 120px; height: 120px; background: rgba(69,184,204,0.08); border: 2px solid rgba(69,184,204,0.58); overflow: hidden; }
.team-card.founder .team-card-avatar span { font-size: 26px; color: rgba(255,255,255,0.2); }
.team-card-expertise {
  margin-top: 0; display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; background: #ebebeb; border-radius: 8px;
  min-height: 96px; height: 96px; flex-shrink: 0;
}
.team-card.founder .team-card-expertise { background: rgba(255,255,255,0.04); }
.team-card-expertise-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #9a9a9a; }
.team-card.founder .team-card-expertise-icon { color: rgba(255,255,255,0.4); }
.team-card-expertise span {
  font-size: 10.5px; color: #6b6b6b; line-height: 1.4;
}
.team-card-expertise > span:not(.team-card-expertise-icon) {
  flex: 1; min-width: 0; font-size: 12px; line-height: 1.35;
  white-space: normal; overflow-wrap: anywhere; text-wrap: pretty;
}
.team-card-expertise-icon { width: 24px; }
.team-card-name, .team-card-role { overflow-wrap: anywhere; }
.team-card-avatar-wrap { min-height: 150px; }
.team-card.founder .team-card-expertise span { color: rgba(255,255,255,0.38); }

.team-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid #e0e0e0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #0b0b0a;
}
.team-arrow-left { left: 8px; }
.team-arrow-right { right: 8px; }
.team-foot { padding: 24px 0 var(--sec-py); border-top: 1px solid #ebebeb; }
.team-foot p { font-size: 14px; color: #c0c0c0; max-width: 480px; line-height: 1.55; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section { background: #0b0b0a; }
.contact-section .sec { padding-top: var(--sec-py); padding-bottom: var(--sec-py); }
.contact-r { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.contact-left { display: flex; flex-direction: column; height: 100%; justify-content: space-between; gap: 48px; }
.contact-lead { font-size: 15px; color: rgba(255,255,255,0.32); line-height: 1.65; margin-top: 18px; }
.contact-quote { position: relative; }
.quote-text {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500;
  color: #f3f6fa;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 420px;
  text-wrap: balance;
  margin-bottom: 20px;
}
.quote-author { display: flex; flex-direction: column; gap: 2px; }
.quote-name { font-size: 14px; font-weight: 700; color: #dce4ec; letter-spacing: -0.01em; }
.quote-role { font-size: 12px; color: #9aa8b5; letter-spacing: 0.06em; text-transform: uppercase; }

.contact-right { padding-top: 29px; }
.form-sent-box { padding: 40px; background: #111110; border: 1px solid rgba(69,184,204,0.18); border-radius: 8px; }
.form-sent-box.hidden { display: none; }
.form-sent-title { font-size: 20px; font-weight: 700; color: #45b8cc; margin-bottom: 10px; }
.form-sent-text { font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1.45; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form.hidden { display: none; }
.form-g { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); text-transform: uppercase; margin-bottom: 7px;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 15px; background: #1a1a18; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; font-size: 14px; color: #fff; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:hover, .contact-form textarea:hover { border-color: rgba(255,255,255,0.26); }
.contact-form textarea { resize: vertical; line-height: 1.45; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #45b8cc; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form label.form-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; font-weight: 400; line-height: 1.5; color: rgba(255,255,255,0.4);
  text-transform: none; letter-spacing: normal;
  cursor: pointer; margin-top: 4px; margin-bottom: 0;
}
.form-consent input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; accent-color: #45b8cc; cursor: pointer; }
.form-consent a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.form-consent a:hover { color: #45b8cc; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #0b0b0a; padding: var(--sec-py) 0 0; border-top: 1px solid #1a1a18; }
.footer-r { display: flex; justify-content: space-between; align-items: flex-start; gap: 36px; margin-bottom: 32px; }
.footer-logo { font-family: 'Space Grotesk', 'Onest', sans-serif; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.2); max-width: 210px; line-height: 1.45; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-link { font-size: 13px; color: rgba(255,255,255,0.25); cursor: pointer; transition: color 0.2s; text-decoration: none; }
.footer-link:hover { color: rgba(255,255,255,0.85); }
.footer-contacts a { display: block; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1a1a18; padding-top: 20px; padding-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom span:not(.footer-link) { font-size: 12px; color: rgba(255,255,255,0.14); }
.footer-policy { font-size: 12px; color: rgba(255,255,255,0.14); }
.footer-glow { position: relative; height: 110px; overflow: hidden; margin-top: 24px; }
.footer-glow-bg {
  position: absolute; left: 0; right: 0; bottom: -30%; height: 180%;
  background:
    radial-gradient(ellipse 22% 70% at 8% 100%, rgba(50,140,230,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 45% 90% at 50% 100%, rgba(60,110,255,0.8) 0%, rgba(50,90,220,0.4) 35%, transparent 70%),
    radial-gradient(ellipse 22% 70% at 90% 100%, rgba(70,120,255,0.45) 0%, transparent 65%);
  filter: blur(38px);
}
.footer-glow-line {
  position: absolute; left: 8%; right: 8%; bottom: 0; height: 2px;
  background: linear-gradient(to right, transparent, rgba(100,170,255,0.7) 20%, rgba(120,190,255,0.75) 50%, rgba(100,170,255,0.7) 80%, transparent);
  filter: blur(2px);
}

/* ==========================================================================
   CASE MODAL
   ========================================================================== */
.case-modal {
  position: fixed; inset: 0; z-index: 100;
  background: #0b1017;
  overflow-y: auto;
}
.case-modal.hidden { display: none; }
.case-modal-inner { max-width: 960px; margin: 0 auto; padding: 48px 40px 48px; position: relative; }
.case-modal-close {
  position: fixed; top: 24px; right: 32px;
  background: #161614; border: 1px solid #252520; color: #f3f6fa;
  width: 44px; height: 44px; border-radius: 50%; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; color: #a9b7c6; text-transform: uppercase; margin-bottom: 10px; }
.modal-title { font-family: 'Space Grotesk', 'Onest', sans-serif; font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 300; letter-spacing: -0.03em; color: #fff; margin-bottom: 18px; line-height: 1.12; }
.modal-result-box {
  display: block; padding: 14px 18px; background: #111f2a;
  border: 1px solid rgba(69,184,204,0.15); border-radius: 4px; margin-bottom: 20px;
}
.modal-result-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: #a9b7c6; text-transform: uppercase; margin-bottom: 5px; }
.modal-result-value { font-size: 16px; font-weight: 700; color: #45b8cc; }
.modal-context { font-size: 16px; color: #d5dee8; line-height: 1.5; white-space: normal; margin-bottom: 20px; }
.modal-divider { border-top: 1px solid #1e1e1c; margin-bottom: 20px; }
.modal-block { margin-bottom: 20px; }
.modal-block-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #a9b7c6; text-transform: uppercase; margin-bottom: 8px; }
.modal-block-text { font-size: 16px; color: #d5dee8; line-height: 1.5; white-space: normal; }
.modal-steps { margin-bottom: 20px; }
.modal-steps-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #a9b7c6; text-transform: uppercase; margin-bottom: 18px; }
.modal-steps-list { border-top: 1px solid #1e1e1c; }
.modal-step { padding: 12px 0; border-bottom: 1px solid #1e1e1c; }
.modal-step-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 7px; }
.modal-step-text { font-size: 16px; color: #d5dee8; line-height: 1.45; white-space: normal; }
.modal-outcome {
  padding: 18px; background: #111f2a; border: 1px solid rgba(69,184,204,0.1);
  border-radius: 6px; margin-bottom: 24px;
}
.modal-outcome-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: #45b8cc; text-transform: uppercase; margin-bottom: 10px; }
.modal-outcome-headline { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.modal-outcome-text { font-size: 16px; color: #fff; line-height: 1.5; font-weight: 500; white-space: normal; }
.modal-cta { text-align: center; margin-bottom: 28px; }
.modal-others-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #a9b7c6; text-transform: uppercase; margin-bottom: 14px; }
.modal-others-list { border-top: 1px solid #1e1e1c; }
.modal-other-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #1e1e1c; cursor: pointer;
}
.modal-other-tag { font-size: 11px; font-weight: 700; color: #a9b7c6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.modal-other-title { font-size: 16px; font-weight: 700; color: #fff; }
.modal-other-arrow { font-size: 18px; color: rgba(255,255,255,0.18); margin-left: 16px; }


.modal-paragraph { display: block; }
.modal-paragraph + .modal-paragraph { margin-top: 8px; }
/* ==========================================================================
   TICKER MODAL (info popup)
   ========================================================================== */
.ticker-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6,6,8,0.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.ticker-modal.hidden { display: none; }
.ticker-modal-inner {
  max-width: 460px; width: 100%; background: #0f0f0e;
  border: 1px solid #252520; border-radius: 16px; padding: 38px; position: relative;
}
.ticker-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: #161614; border: 1px solid #252520; color: rgba(255,255,255,0.4);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
}
.ticker-modal-kind { font-size: 10px; font-weight: 700; letter-spacing: 0.13em; color: #45b8cc; text-transform: uppercase; margin-bottom: 14px; }
.ticker-modal-name { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 16px; line-height: 1.15; }
.ticker-modal-desc { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,0.55); margin: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero { min-height: 82vh; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns button { width: 100%; }
  :root { --sec-py: 32px; }
  .sec { padding-top: var(--sec-py); padding-bottom: var(--sec-py); padding-left: 24px; padding-right: 24px; }
  .ticker-section { padding: var(--sec-py) 0; }
  .team-sec { padding-top: var(--sec-py); padding-bottom: 0; }
  .stats-g { grid-template-columns: 1fr 1fr; }
  .why-g { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav a[href^="tel:"] { display: none; }
  .hero-content { padding: 130px 24px 32px; }
  .hero-btns { margin-bottom: 32px; }
  .footer-r { flex-direction: column; gap: 28px; }
  .contact-r { flex-direction: column; }
  .form-g { grid-template-columns: 1fr; }
  .svc-g { grid-template-columns: 1fr 1fr; }
  .svc-card { min-height: auto; padding: 22px 18px; }
  .team-head { padding-left: 24px; padding-right: 24px; }
  .team-arrow { display: none; }
  .cases-arrow { display: none; }
  .approach-outer { grid-template-columns: 1fr; }
  .approach-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding-right: 0; padding-bottom: 24px; margin-bottom: 24px; }
  .approach-right { padding-left: 0; }
  .sigma-wrap { justify-content: flex-start; padding: 12px 0; }
  .sigma-big { font-size: clamp(4rem, 20vw, 6rem); }
  .approach-row { grid-template-columns: 1fr; gap: 8px; }
  .approach-row-num { order: -1; }
  .approach-row-chevron { display: none; }
  .approach-result { grid-template-columns: 56px 1fr; }
}

@media (max-width: 860px) {
  .contact-r { grid-template-columns: 1fr; gap: 48px; }
  .contact-right { padding-top: 0; }
}

@media (max-width: 560px) {
  .stats-g { grid-template-columns: 1fr; gap: 0; }
  .stat-item { padding-bottom: 28px; }
  .stat-line { order: 4; border-bottom: 1px solid #e5e5e5; margin-bottom: 0; margin-top: 20px; }
  .stat-num { margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .svc-g { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ЛОГОТИП (растровый MG_logo)
   Тёмная шапка показывает белый вариант, светлая — чёрный.
   ========================================================================== */
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 27px; width: auto; display: block; }
.nav.at-top .logo-dark { display: none; }
.nav.scrolled .logo-light { display: none; }
/* В MG_logo_white.png слева 196px прозрачного поля из 1934px ширины.
   При height: 26px это 13.3px пустоты, из-за которых логотип visually уезжал
   вправо от слогана и копирайта. Компенсируем отрицательным отступом. */
.footer-logo img { height: 26px; width: auto; display: block; margin-left: -13.3px; }

/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================================================== */
@media (max-width: 760px) {
  /* Фильтр отраслей: горизонтальная лента вместо длинного вертикального списка.
     Метка выносится на свою строку, чипы прокручиваются вбок. */
  .cases-filter {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -24px 24px;
    padding: 0 24px 6px;
  }
  .cases-filter::-webkit-scrollbar { display: none; }
  .case-chip-label {
    display: block;
    white-space: normal;
    margin: 0 0 10px;
  }
  .case-chip {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
  }

  /* Карточки шире — одна в фокусе, следующая выглядывает краем */
  .case-card { flex: 0 0 76vw; height: 290px; }
  .team-card { flex: 0 0 76vw; }
  .cases-row, .team-row { gap: 12px; }

  /* Заголовки и подводки компактнее */
  .section-h { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .section-lead { font-size: 14px; margin-bottom: 26px; }
  .cases-head { margin-bottom: 16px; }
}

/* Broad crab silhouette supplied by the client. */
.case-card[data-case="case6"] .case-card-cutout { width: 245px; height: 200px; right: -32px; bottom: 42px; }
