/* ===================================================================
   FELIZ — semantic, responsive, BEM. Fonts in fonts.css.
   Desktop = base styles (fixed 1440 design).
   Mobile  = @media (max-width:700px) (390 design).
   =================================================================== */
:root {
  --bg: #1a1a20;
  --card: #030304;
  --green: #c9fd7c;
  --green-deep: #78974a;
  --white: #fff;
  --text-soft: #cdcdcd;

  --r-card: 64px;
  --gutter: 24px;

  --grad-heading: linear-gradient(180deg, #fff 0%, #bfbfbf 51%, #d7d7d7 100%);
  --grad-border: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(153, 153, 153, 0.04));

  --font: "Object Sans", "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
section {
  overflow-x: clip;
} /* guard: decorative band tiles / glows never cause horizontal scroll */

/* utilities */
.u-desktop {
  display: inline;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===================== HERO ===================== */
.hero {
  padding: 24px 0;
}
.hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  padding: 72px;
  min-height: 850px;
}
.hero__card::before {
  /* 1px inset border following the radius (Figma: rgba(255,255,255,0.16)) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  outline: 1px solid rgba(255, 255, 255, 0.16);
  outline-offset: -1px;
  pointer-events: none;
  z-index: 6;
}
.hero__bg {
  /* blurred photo background overlay */
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/hero-bg.webp") center/cover no-repeat;
  filter: blur(8px);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.88));
}
.hero__glow {
  /* green glow overlay */
  position: absolute;
  left: 0;
  top: -208px;
  right: 0;
  height: 452px;
  z-index: 1;
  border-radius: 50%;
  background: rgba(201, 253, 124, 0.12);
  filter: blur(160px);
  pointer-events: none;
}
.hero__shade {
  /* soft dark shade overlay behind text */
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 402px;
  z-index: 2;
  border-radius: 50%;
  background: var(--card);
  filter: blur(160px);
  pointer-events: none;
}
.hero__photo {
  /* director photo overlay on the right */
  position: absolute;
  right: 0;
  top: 0;
  width: 36%;
  max-width: 504px;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 5;
  width: 62%;
  max-width: 776px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}
.hero__text {
  margin: 0;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 26px);
  line-height: 1.55;
  color: var(--white);
}
.hero__badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: 560px;
  max-width: calc(100% - 144px);
  height: 64px;
  padding: 0 36px 0 60px;
  position: absolute;
  right: 108px;
  bottom: 24px;
  z-index: 5;
  border-radius: 24px;
  border: 1px solid rgba(153, 153, 153, 0.32);
  background: none;
}
.hero__badge-dot {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
}
.hero__badge-name {
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

/* ---------------- TABLET ---------------- */
@media (max-width: 900px) {
  .hero__content {
    width: 62%;
  }
  .hero__photo {
    width: 40%;
  }
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 700px) {
  .u-desktop {
    display: none;
  }

  .hero {
    padding: 0;
  }
  .hero__inner {
    padding: 0 8px;
  }
  .hero__card {
    padding: 32px 16px;
    border-radius: 16px;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .hero__bg {
    filter: blur(2px);
  }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.86));
  }
  .hero__glow {
    top: auto;
    bottom: 0;
    height: 213px;
    filter: blur(75px);
  }
  .hero__shade {
    width: 80%;
    height: 238px;
    filter: blur(120px);
  }

  .hero__content {
    width: 100%;
    max-width: none;
    gap: 16px;
    order: 1;
  }
  .hero__badge {
    position: static;
    right: auto;
    bottom: auto;
    order: 3;
    align-self: center;
    width: auto;
    max-width: 100%;
    height: 32px;
    padding: 0 14px 0 28px;
    margin-top: 12px;
    border-radius: 12px;
  }
  .hero__badge-name {
    font-size: 12px;
  }
  .hero__badge-dot {
    left: 8px;
    width: 7px;
    height: 7px;
  }

  .hero__photo {
    position: static;
    order: 2;
    width: 75%;
    max-width: 284px;
    margin: 8px auto 0;
    display: block;
  }
}

/* ===================== VIDEO ===================== */
.video {
  padding: 12px 0 0;
}
.video__inner {
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.video__card {
  position: relative;
  display: flex;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
}
@media (min-width: 1024px) {
  .video__card {
    aspect-ratio: 1392 / 898;
  }
}
.video__card::before {
  /* 1px gradient stroke following the radius (dump: #fff@0 -> #999@1) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 6;
}
.video__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* dark overlay on the photo (dump: rgba(25,25,30,.48)@0 -> rgba(41,41,50,0)@1) */
.video__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 25, 30, 0.48) 0%, rgba(41, 41, 50, 0) 100%);
}
/* green top glow (dump: ellipse @24,-196 1392x452 #c9fd7c, layer blur) */
.video__glow {
  position: absolute;
  left: 0;
  top: -22%;
  width: 100%;
  height: 50%;
  z-index: 2;
  border-radius: 50%;
  background: rgba(201, 253, 124, 0.12);
  filter: blur(160px);
  pointer-events: none;
}
.video__content {
  position: relative;
  z-index: 5;
  max-width: 100%;
  padding: 64px;
}
.video__eyebrow {
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  color: var(--white);
}
.video__title {
  margin-top: 16px;
  max-width: 906px;
  font-weight: 700;
  font-size: 56px;
  line-height: 64px;
  text-transform: uppercase;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.video__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 19px 29px 19px 19px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 29px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
}
.video__btn-icon {
  display: flex;
  width: 19px;
  height: 19px;
}
.video__btn-icon img {
  width: 19px;
  height: 19px;
}
.video__btn-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 21.6px;
  color: #f3f3f3;
  opacity: 0.8;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 700px) {
  .video {
    padding: 8px 0 0;
  }
  .video__inner {
    padding: 0 12px;
  }
  .video__card {
    border-radius: 20px;
    aspect-ratio: auto;
    min-height: 246px;
  }
  .video__card::before {
    padding: 1px;
  }
  .video__glow {
    filter: blur(60px);
  }
  .video__content {
    width: 100%;
    max-width: none;
    padding: 16px;
  }
  .video__eyebrow {
    font-size: 10px;
    line-height: 1.4;
  }
  .video__title {
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.14;
  }
  .video__btn {
    gap: 6px;
    margin-top: 10px;
    padding: 7px 12px 7px 7px;
    border-radius: 14px;
  }
  .video__btn-icon,
  .video__btn-icon img {
    width: 11px;
    height: 11px;
  }
  .video__btn-text {
    font-size: 10px;
    line-height: 1.2;
  }
}

/* ===================== FACTS ===================== */
/* ============ FACTS — Факты о компании ============ */
.facts {
  position: relative;
  width: 100%;
  background: var(--bg);
  padding: 80px 0;
  overflow: hidden;
}
.facts__inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* background grid + glow */
.facts__grid {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1202px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34.7px 34.5px;
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 100%);
  mask: linear-gradient(180deg, #000 0%, transparent 100%);
}
.facts__glow {
  position: absolute;
  left: 0;
  top: 40%;
  width: 100%;
  height: 1200px;
  z-index: 0;
  border-radius: 50%;
  background: rgba(201, 253, 124, 0.1);
  filter: blur(220px);
  pointer-events: none;
}

/* shared card */
.facts__card {
  position: relative;
  z-index: 2;
  background: rgba(3, 3, 4, 0.48);
  border-radius: 40px;
  padding: 40px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.facts__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* shared heading gradient */
.facts__card-title,
.facts__top-title,
.facts__services-title,
.facts__office-title,
.facts__clients-title,
.facts__stat-big,
.facts__count-num {
  background: linear-gradient(180deg, #fff 0%, #999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- green sticker band ---- */
.facts__band {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 341px;
  margin-bottom: 16px;
  background: var(--green);
  border-radius: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.facts__tiles {
  position: absolute;
  inset: -40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-content: center;
  justify-content: center;
  transform: rotate(-4deg) scale(1.1);
}
.facts__tile {
  font-family: var(--font);
  font-weight: 800;
  font-size: 80px;
  line-height: 0.9;
  color: #030304;
  opacity: 0.14;
  white-space: nowrap;
}
.facts__band-pill {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 80px rgba(0, 0, 0, 0.48);
}
.facts__band-pill span {
  font-family: var(--font);
  font-weight: 800;
  font-size: 80px;
  line-height: 1;
  color: var(--green);
  white-space: nowrap;
}

/* ============ BENTO ============ */
.facts__bento {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- top region: left mega column (928) + right stat column (448) ---- */
.facts__main {
  display: grid;
  grid-template-columns: minmax(0, 928fr) minmax(0, 448fr);
  gap: 16px;
  align-items: start;
}
.facts__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ---- Два направления деятельности (928 x 240) ---- */
.facts__card--dirs {
  display: grid;
  grid-template-columns: 356px 1fr;
  column-gap: 56px;
  align-items: start;
}
.facts__card-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  text-transform: uppercase;
}
.facts__dirs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 4px;
}
.facts__dir {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.facts__num {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  border: 1px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--bg);
}
.facts__dir-text {
  font-family: var(--font);
  font-weight: 400;
  font-size: 22px;
  line-height: 26px;
  color: var(--white);
}

/* ---- ТОП-1 / ТОП-2 mega card (928 x 1310) ---- */
.facts__card--tops {
  flex: 1 1 auto;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.facts__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.facts__top-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.facts__top-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  text-transform: uppercase;
}
.facts__top-sub {
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  color: var(--text-soft);
}
.facts__browser {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.facts__browser-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 35px;
  padding: 0 24px;
  background: #fff;
}
.facts__browser-dots {
  position: relative;
  width: 12px;
  height: 10px;
  flex: 0 0 12px;
  background:
    linear-gradient(#888686, #888686) 0 0 / 12px 2px no-repeat,
    linear-gradient(#888686, #888686) 0 4px / 12px 2px no-repeat,
    linear-gradient(#888686, #888686) 0 8px / 8px 2px no-repeat;
}
.facts__browser-url {
  font-family: var(--font);
  font-weight: 400;
  font-size: 12px;
  color: #868686;
}
.facts__browser-shot {
  display: block;
  width: 100%;
  height: auto;
  background: #f2f2f7;
}

/* ---- right stat column ---- */
.facts__card--revenue {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.facts__stat {
  display: flex;
  flex-direction: column;
}
.facts__stat-big {
  font-family: var(--font);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  text-transform: uppercase;
}
.facts__stat-cap {
  margin-top: 16px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  color: var(--text-soft);
}
.facts__breakdown {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.facts__brow {
  display: flex;
  align-items: center;
  gap: 16px;
}
.facts__brow-ico {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d9d9d9 center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.facts__brow-ico--whole {
  background-image: url("../assets/icon-whole.webp");
}
.facts__brow-ico--wb {
  background-image: url("../assets/icon-wildberries.webp");
}
.facts__brow-ico--ozon {
  background-image: url("../assets/icon-ozon.webp");
}
.facts__brow-txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.facts__brow-name {
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
  color: #fefefe;
}
.facts__brow-val {
  font-family: var(--font);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: #fefefe;
}

/* ---- counts (976 / 274 033) ---- */
.facts__card--counts {
  padding: 32px 24px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.facts__count {
  display: flex;
  flex-direction: column;
}
.facts__count-num {
  font-family: var(--font);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
}
.facts__count-cap {
  margin-top: 2px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 22px;
  color: #d1d1d1;
}

/* ---- staff ---- */
.facts__card--staff {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.facts__depts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.facts__dept {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.facts__dept-bar {
  flex: 0 0 6px;
  width: 6px;
  border-radius: 10px;
  background: var(--green);
}
.facts__dept-txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.facts__dept-name {
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
  color: #fefefe;
}
.facts__dept-val {
  font-family: var(--font);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: #fefefe;
}

/* ---- office ---- */
.facts__card--office {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.facts__office-row {
  position: relative;
}
.facts__office-row--ico {
  padding-top: 56px;
}
.facts__office-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
}
.facts__office-sub {
  margin-top: 8px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
  color: #d1d1d1;
}
.facts__office-ico {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.facts__office-ico::before,
.facts__office-ico::after {
  content: "";
  position: absolute;
  background: var(--card);
  border-radius: 4px;
}
.facts__office-ico::before {
  left: 18px;
  top: 12px;
  width: 4px;
  height: 16px;
}
.facts__office-ico::after {
  left: 12px;
  top: 18px;
  width: 16px;
  height: 4px;
}

/* ============ bottom region ============ */
.facts__feats {
  display: grid;
  grid-template-columns: minmax(0, 464fr) minmax(0, 448fr) minmax(0, 448fr);
  gap: 16px;
  grid-auto-flow: row dense;
}

/* services: left column, spans the height of the two feature rows above clients */
.facts__card--services {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 48px 40px 40px;
}
.facts__services-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  text-transform: uppercase;
}
.facts__svc-list {
  list-style: none;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.facts__svc {
  position: relative;
  padding-left: 42px;
}
.facts__num--sm {
  position: absolute;
  left: 0;
  top: 0;
  flex: none;
  width: 24px;
  height: 24px;
  font-size: 14px;
}
.facts__svc-name {
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  color: #fefefe;
}
.facts__svc-text {
  margin-top: 6px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #fff;
}

/* feature cards */
.facts__card--feat {
  display: flex;
  flex-direction: column;
}
.facts__card--univ {
  grid-column: 2;
  grid-row: 1;
}
.facts__card--it {
  grid-column: 3;
  grid-row: 1;
}
.facts__card--factory {
  grid-column: 2;
  grid-row: 2;
}
.facts__card--ads {
  grid-column: 3;
  grid-row: 2;
}
.facts__feat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.facts__feat-ico img {
  width: 36px;
  height: 36px;
}
.facts__feat-text {
  margin-top: 32px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  color: #fff;
}

/* AI green band */
.facts__card--ai {
  grid-column: 1;
  grid-row: 3;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.facts__card--ai::before {
  display: none;
}
.facts__ai-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.facts__ai-ico img {
  width: 40px;
  height: 40px;
}
.facts__ai-text {
  font-family: var(--font);
  font-weight: 400;
  font-size: 22px;
  line-height: 24px;
  color: #111214;
}

/* 290+ / 4,9 */
.facts__card--letters {
  grid-column: 1;
  grid-row: 4;
}
.facts__card--rating {
  grid-column: 1;
  grid-row: 5;
}
.facts__count-num--lg {
  font-size: 64px;
  line-height: 76px;
  text-transform: uppercase;
}
.facts__letters-cap {
  margin-top: 8px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 22px;
  line-height: 24px;
  color: #fff;
}

/* launch */
.facts__card--launch {
  grid-column: 1;
  grid-row: 6;
  display: flex;
  align-items: center;
}
.facts__launch-text {
  font-family: var(--font);
  font-weight: 400;
  font-size: 22px;
  line-height: 24px;
  color: #fff;
}

/* знаковые клиенты: spans cols 2-3, rows 3-6 (next to ai/letters/rating/launch) */
.facts__card--clients {
  grid-column: 2 / span 2;
  grid-row: 3 / span 4;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.facts__clients-text-col {
  display: flex;
  flex-direction: column;
  max-width: 368px;
}
.facts__clients-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  text-transform: uppercase;
}
.facts__clients-text {
  margin-top: 24px;
  max-width: 332px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}
.facts__clients-logos {
  align-self: stretch;
  width: 436px;
  max-width: 50%;
  height: auto;
  object-fit: contain;
}

/* ---------------- TABLET ---------------- */
@media (max-width: 1000px) {
  .facts__main {
    grid-template-columns: 1fr;
  }
  .facts__feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts__card--services {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .facts__card--univ {
    grid-column: 2;
    grid-row: 1;
  }
  .facts__card--it {
    grid-column: 2;
    grid-row: 2;
  }
  .facts__card--factory {
    grid-column: 1;
    grid-row: 3;
  }
  .facts__card--ads {
    grid-column: 2;
    grid-row: 3;
  }
  .facts__card--ai {
    grid-column: 1;
    grid-row: 4;
  }
  .facts__card--letters {
    grid-column: 2;
    grid-row: 4;
  }
  .facts__card--rating {
    grid-column: 1;
    grid-row: 5;
  }
  .facts__card--launch {
    grid-column: 2;
    grid-row: 5;
  }
  .facts__card--clients {
    grid-column: 1 / span 2;
    grid-row: 6;
  }
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 700px) {
  .facts {
    padding: 48px 0;
  }
  .facts__inner {
    padding: 0 16px;
  }

  .facts__grid {
    display: none;
  }
  .facts__glow {
    top: 160px;
    height: 600px;
    filter: blur(90px);
  }

  /* everything to single column */
  .facts__main {
    grid-template-columns: 1fr;
  }
  .facts__feats {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .facts__card {
    border-radius: 16px;
    backdrop-filter: blur(8px);
  }

  /* band */
  .facts__band {
    min-height: 92px;
    border-radius: 16px;
  }
  .facts__tiles {
    inset: -10px;
    gap: 6px 10px;
    transform: rotate(-4deg) scale(1.1);
  }
  .facts__tile {
    font-size: 22px;
  }
  .facts__band-pill {
    padding: 4px 10px;
    border-radius: 8px;
  }
  .facts__band-pill span {
    font-size: 26px;
  }

  /* Два направления */
  .facts__card--dirs {
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 24px;
  }
  .facts__card-title {
    font-size: 24px;
    line-height: 28px;
  }
  .facts__dirs {
    gap: 16px;
  }
  .facts__dir {
    gap: 12px;
  }
  .facts__num {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .facts__dir-text {
    font-size: 15px;
    line-height: 19px;
  }

  /* tops */
  .facts__card--tops {
    padding: 24px;
    gap: 32px;
  }
  .facts__top {
    gap: 16px;
  }
  .facts__top-title {
    font-size: 28px;
  }
  .facts__top-sub {
    font-size: 13px;
  }
  .facts__browser-bar {
    height: 27px;
    padding: 0 16px;
    gap: 10px;
  }

  /* revenue */
  .facts__card--revenue {
    padding: 24px;
    gap: 24px;
  }
  .facts__stat-big {
    font-size: 34px;
  }
  .facts__stat-cap {
    margin-top: 12px;
    font-size: 14px;
  }
  .facts__breakdown {
    gap: 20px;
  }
  .facts__brow-ico {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
  .facts__brow-name {
    font-size: 15px;
  }
  .facts__brow-val {
    font-size: 18px;
  }

  /* counts */
  .facts__card--counts {
    padding: 24px;
  }
  .facts__count-num {
    font-size: 34px;
    line-height: 40px;
  }
  .facts__count-cap {
    font-size: 15px;
    line-height: 18px;
  }

  /* staff */
  .facts__card--staff {
    padding: 24px;
    gap: 24px;
  }
  .facts__depts {
    gap: 13px;
  }
  .facts__dept-name {
    font-size: 15px;
  }
  .facts__dept-val {
    font-size: 18px;
  }

  /* office */
  .facts__card--office {
    padding: 24px;
    gap: 32px;
  }
  .facts__office-row--ico {
    padding-top: 48px;
  }
  .facts__office-title {
    font-size: 20px;
  }
  .facts__office-sub {
    font-size: 15px;
  }
  .facts__office-ico {
    width: 33px;
    height: 33px;
  }
  .facts__office-ico::before {
    left: 15px;
    top: 10px;
    width: 3px;
    height: 13px;
  }
  .facts__office-ico::after {
    left: 10px;
    top: 15px;
    width: 13px;
    height: 3px;
  }

  /* services */
  .facts__card--services {
    padding: 24px;
  }
  .facts__services-title {
    font-size: 24px;
    line-height: 30px;
  }
  .facts__svc-name {
    font-size: 16px;
  }
  .facts__svc-text {
    font-size: 14px;
    line-height: 20px;
  }

  /* feature cards */
  .facts__card--feat {
    padding: 24px;
  }
  .facts__feat-ico {
    width: 52px;
    height: 52px;
  }
  .facts__feat-ico img {
    width: 28px;
    height: 28px;
  }
  .facts__feat-text {
    margin-top: 24px;
    font-size: 18px;
    line-height: 24px;
  }

  /* AI */
  .facts__card--ai {
    padding: 18px 20px;
    gap: 14px;
  }
  .facts__ai-text {
    font-size: 18px;
    line-height: 22px;
  }

  /* 290+ / 4,9 / launch */
  .facts__card--letters,
  .facts__card--rating {
    padding: 24px;
  }
  .facts__count-num--lg {
    font-size: 48px;
    line-height: 58px;
  }
  .facts__letters-cap {
    font-size: 18px;
    line-height: 22px;
  }
  .facts__card--launch {
    padding: 24px;
  }
  .facts__launch-text {
    font-size: 18px;
    line-height: 22px;
  }

  /* clients */
  .facts__card--clients {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }
  .facts__clients-title {
    font-size: 30px;
    line-height: 36px;
  }
  .facts__clients-text {
    max-width: none;
  }
  .facts__clients-logos {
    width: 100%;
    max-width: none;
  }
}

/* ===================== REVENUE ===================== */
/* ============ REVENUE — Выручка компании за прошлый год ============ */
.revenue {
  padding: 12px 0 80px;
}
.revenue__inner {
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* the big near-black card = a 2-col grid block */
.revenue__card {
  position: relative;
  display: grid;
  grid-template-columns: 443px 1fr;
  gap: 40px;
  /* dump: panel x=64 (=40 left), right stack ends flush right (=24) */
  padding: 48px 24px 48px 40px;
  background: var(--card);
  border-radius: 40px;
  overflow: hidden;
}
.revenue__card::before {
  /* 1px gradient border following the radius */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 9;
}
.revenue__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(180px);
  pointer-events: none;
  z-index: 0;
}
/* Ellipse 2318 #c9fd7c bottom-left green */
.revenue__glow--green {
  left: -12%;
  bottom: -18%;
  width: 100%;
  height: 40%;
  background: rgba(201, 253, 124, 0.12);
}
/* Ellipse 2310 #51d57b teal upper-right */
.revenue__glow--teal {
  right: -4%;
  top: 14%;
  width: 56%;
  height: 56%;
  background: rgba(81, 213, 123, 0.16);
}

/* ---- LEFT glass panel : Frame 38610 443x1088 r32 ---- */
.revenue__panel {
  position: relative;
  z-index: 2;
  align-self: start;
  background: rgba(3, 3, 4, 0.6);
  border-radius: 32px;
  /* content x=104 abs -> 40 from panel; title top y=88 -> 40 from panel top */
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.revenue__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.revenue__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  text-transform: uppercase;
  max-width: 306px;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- pie / petals (self-contained fixed-size graphic, ok to be absolute) ----
   Built to match the 3-petal pie + dot labels around it. */
/* pie chart graphic — self-contained exported SVG (labels baked in) */
.revenue__pie {
  width: 100%;
  max-width: 365px;
  margin: 24px 0 0;
}
.revenue__pieImg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  animation: revenuePieIn 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes revenuePieIn {
  from {
    opacity: 0;
    transform: rotate(-18deg) scale(0.86);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .revenue__pieImg {
    animation: none;
  }
}

/* ---- legend list : Frame 38652 gap:24, rows gap:16 ---- */
.revenue__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.revenue__item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.revenue__itemText {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.revenue__itemLabel {
  font-family: var(--font);
  font-size: 18px;
  line-height: 21.6px;
  font-weight: 300;
  color: #fefefe;
}
.revenue__itemValue {
  font-family: var(--font);
  font-size: 22px;
  line-height: 26.4px;
  font-weight: 500;
  color: #fefefe;
}
.revenue__note {
  margin-top: 24px;
  max-width: 341px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 18px;
  color: #a4a4a4;
}

/* ---- avatars (shared) ---- */
.revenue__avatar {
  flex: none;
  border-radius: 50%;
}
.revenue__avatar--total {
  background-image: url("../assets/icon-total.webp");
}
.revenue__avatar--opt {
  background-image: url("../assets/icon-whole.webp");
}
.revenue__avatar--oz {
  background-image: url("../assets/icon-ozon.webp");
}
.revenue__avatar--wb {
  background-image: url("../assets/icon-wildberries.webp");
}
.revenue__list .revenue__avatar {
  width: 64px;
  height: 64px;
}

/* ---- RIGHT: 4 captioned browser cards : Frame 38659 gap:48 ---- */
.revenue__blocks {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}
.revenue__block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.revenue__blockHead {
  display: flex;
  align-items: center;
  gap: 20px;
}
.revenue__blockHead .revenue__avatar {
  width: 56px;
  height: 56px;
  background-size: cover;
}
.revenue__blockText {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.revenue__blockLabel {
  font-family: var(--font);
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 300;
  color: #fefefe;
}
.revenue__blockValue {
  font-family: var(--font);
  font-size: 24px;
  line-height: 28.8px;
  font-weight: 500;
  color: #fefefe;
}

/* white "browser" card : Frame 38611 r16, inner 8px gutter */
.revenue__browser {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  overflow: hidden;
}
.revenue__browserBar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 27px;
  padding: 0 4px;
  background: #fff;
}
.revenue__dots {
  position: relative;
  flex: none;
  width: 12px;
  height: 10px;
}
.revenue__dots::before,
.revenue__dots::after {
  content: "";
  position: absolute;
  left: 0;
  width: 12px;
  height: 2px;
  border-radius: 20px;
  background: #888686;
}
.revenue__dots::before {
  top: 0;
  box-shadow: 0 4px 0 #888686;
}
.revenue__dots::after {
  top: 8px;
  width: 8px;
}
.revenue__caption {
  font-family: var(--font);
  font-size: 12px;
  line-height: 14.4px;
  font-weight: 400;
  color: #868686;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.revenue__screen {
  margin-top: 9px;
  border-radius: 8px;
  background: #f2f2f7;
  overflow: hidden;
}
.revenue__shot {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------- TABLET ---------------- */
@media (max-width: 1100px) {
  .revenue__card {
    grid-template-columns: 380px 1fr;
    gap: 28px;
    padding: 32px;
  }
  .revenue__panel {
    padding: 32px;
  }
  .revenue__pie {
    max-width: 320px;
  }
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 700px) {
  .revenue {
    padding: 0 0 48px;
  }
  .revenue__inner {
    padding: 0 16px;
  }
  .revenue__card {
    grid-template-columns: 1fr;
    gap: 16px;
    border-radius: 24px;
    padding: 16px;
  }
  .revenue__glow {
    filter: blur(80px);
  }

  /* panel first */
  .revenue__panel {
    border-radius: 24px;
    padding: 28px 24px;
  }
  .revenue__title {
    font-size: 20px;
    line-height: 27px;
    max-width: 258px;
  }
  .revenue__pie {
    width: 100%;
    max-width: 320px;
    margin: 18px auto 0;
  }

  .revenue__list {
    gap: 20px;
    margin-top: 20px;
  }
  .revenue__list .revenue__avatar {
    width: 54px;
    height: 54px;
  }
  .revenue__itemLabel {
    font-size: 15px;
  }
  .revenue__itemValue {
    font-size: 18px;
  }
  .revenue__note {
    margin-top: 20px;
    max-width: 288px;
    font-size: 12px;
    line-height: 15px;
  }

  /* blocks below */
  .revenue__blocks {
    gap: 24px;
  }
  .revenue__block {
    gap: 10px;
  }
  .revenue__blockHead {
    gap: 12px;
  }
  .revenue__blockHead .revenue__avatar {
    width: 40px;
    height: 40px;
  }
  .revenue__blockLabel {
    font-size: 12px;
  }
  .revenue__blockValue {
    font-size: 17px;
  }

  .revenue__browser {
    border-radius: 10px;
    padding: 5px;
  }
  .revenue__browserBar {
    height: 18px;
    gap: 8px;
    padding: 0 3px;
  }
  .revenue__dots {
    width: 8px;
    height: 7px;
  }
  .revenue__dots::before,
  .revenue__dots::after {
    width: 8px;
    height: 1.5px;
  }
  .revenue__dots::before {
    box-shadow: 0 3px 0 #888686;
  }
  .revenue__dots::after {
    top: 5.5px;
    width: 5px;
  }
  .revenue__caption {
    font-size: 9px;
  }
  .revenue__screen {
    margin-top: 5px;
    border-radius: 5px;
  }
}

/* ===================== HISTORY ===================== */

/* ============ HISTORY — как мы выросли в 20 раз ============ */
/* Desktop = fixed 1440 design. Content area 1392 (1440 − 2×24 gutters). */
.history {
  padding: 0 0 16px;
}
.history__inner {
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- green sticker band: 1392×341, radius 64, #c9fd7c ---- */
/* tiles are a decorative layer (absolute inside overflow-hidden) */
.history__band {
  position: relative;
  width: 100%;
  min-height: 341px;
  margin-top: 12px;
  border-radius: var(--r-card);
  background: var(--green);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
/* word-cloud laid out as an even flex grid (same approach as facts) so tiles
   never overlap; the band clips the bleed via overflow:hidden. */
.history__tiles {
  position: absolute;
  inset: -40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-content: center;
  justify-content: center;
  transform: rotate(-4deg) scale(1.1);
  pointer-events: none;
  user-select: none;
}
.history__tile {
  color: var(--card);
  font-family: var(--font);
  font-weight: 800;
  font-size: 80px;
  line-height: 0.9;
  white-space: nowrap;
}

/* dark glass pill — Object Sans 800 80px green, centered (dump: 1093×103) */
.history__pill {
  position: relative;
  z-index: 2;
  max-width: 1093px;
  min-height: 103px;
  padding: 10px 32px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.88));
  box-shadow: 0 8px 80px rgba(0, 0, 0, 0.48);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--green);
  font-family: var(--font);
  font-weight: 800;
  font-size: 80px;
  line-height: 96px;
}
.history__pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- timeline = normal-flow vertical stack of year blocks (gap 16) ---- */
.history__timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

/* year block: 1392 wide, radius 40, fill #030304, gradient border.
   2-col grid: LEFT 451 / RIGHT 845, gap 16, padding 40 */
.history__year {
  position: relative;
  width: 100%;
  background: var(--card);
  border-radius: 40px;
  overflow: clip; /* clip (not hidden) so the sticky left column isn't trapped in a scroll container */
  padding: 40px;
  display: grid;
  grid-template-columns: 451px 845px;
  gap: 16px;
  align-items: start;
}
/* (year card has NO border in the comp — just flat #030304 + radius) */
/* top glow (ellipse blur) — blue / orange per year, very subtle per comp */
.history__glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 96%;
  height: 78%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(300px);
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
}
.history__year--blue .history__glow {
  background: #7cbffd;
}
.history__year--orange .history__glow {
  background: #fdd17c;
}
/* faint 35px grid overlay */
.history__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.5) 34px 35px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, 0.5) 34px 35px);
}

/* LEFT column (flow): label, chart, month notes — fixed 451 */
.history__left {
  position: sticky;
  top: 24px;
  align-self: start; /* height = content, so it can stick within the taller row */
  z-index: 3;
  width: 451px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
/* RIGHT column (flow): photos/screenshots stacked, fixed 845 */
.history__right {
  position: relative;
  z-index: 3;
  width: 845px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* year label — Object Sans 700 32px/40, gradient, uppercase */
.history__label {
  font-family: var(--font);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  text-transform: uppercase;
  color: #fff;
}

/* ---- growth-chart card (451×265, radius 24) ---- */
.history__chart {
  position: relative;
  width: 100%;
  min-height: 265px;
  border-radius: 24px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 55%), rgba(21, 21, 26, 0.4);
  border: 1px solid transparent;
}
.history__chart::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* metrics — Inter 400 14px/16.8 */
.history__metric {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 16.8px;
  margin: 0;
}
.history__metric--revenue {
  color: var(--green);
}
.history__metric--gifts {
  color: #d1ff8e;
  margin-top: 16px;
}
.history__metric-label {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 16.8px;
  color: #c9fd7c;
}
.history__metric-value {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}
/* bars row (10 bars, baseline aligned, year labels under) */
.history__bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 13px;
  height: 178px;
  margin-top: 24px;
  margin-bottom: 31px;
}
.history__bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #fff, #999);
  opacity: 0.72;
  /* progressive grow-in (triggered by .history__bars.is-grown) */
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.history__bars.is-grown .history__bar {
  transform: scaleY(1);
}
.history__bar:nth-child(1) {
  transition-delay: 0.04s;
}
.history__bar:nth-child(2) {
  transition-delay: 0.08s;
}
.history__bar:nth-child(3) {
  transition-delay: 0.12s;
}
.history__bar:nth-child(4) {
  transition-delay: 0.16s;
}
.history__bar:nth-child(5) {
  transition-delay: 0.2s;
}
.history__bar:nth-child(6) {
  transition-delay: 0.24s;
}
.history__bar:nth-child(7) {
  transition-delay: 0.28s;
}
.history__bar:nth-child(8) {
  transition-delay: 0.32s;
}
.history__bar:nth-child(9) {
  transition-delay: 0.36s;
}
.history__bar:nth-child(10) {
  transition-delay: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  .history__bar {
    transform: none;
    transition: none;
  }
}
/* intrinsic bar heights (same in every year chart) */
.history__bar[data-y="2016"] {
  height: 8px;
}
.history__bar[data-y="2017"] {
  height: 12px;
}
.history__bar[data-y="2018"] {
  height: 10px;
}
.history__bar[data-y="2019"] {
  height: 20px;
}
.history__bar[data-y="2020"] {
  height: 42px;
}
.history__bar[data-y="2021"] {
  height: 52px;
}
.history__bar[data-y="2022"] {
  height: 75px;
}
.history__bar[data-y="2023"] {
  height: 103px;
}
.history__bar[data-y="2024"] {
  height: 139px;
}
.history__bar[data-y="2025"] {
  height: 178px;
}
.history__bar::after {
  content: attr(data-y);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 14px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 11px;
  line-height: 13.2px;
  color: #a8a8a8;
}
/* active (current) year bar — green + glow */
.history__chart--2016 .history__bar[data-y="2016"],
.history__chart--2017 .history__bar[data-y="2017"],
.history__chart--2018 .history__bar[data-y="2018"],
.history__chart--2019 .history__bar[data-y="2019"],
.history__chart--2020 .history__bar[data-y="2020"],
.history__chart--2021 .history__bar[data-y="2021"],
.history__chart--2022 .history__bar[data-y="2022"],
.history__chart--2023 .history__bar[data-y="2023"],
.history__chart--2024 .history__bar[data-y="2024"],
.history__chart--2025 .history__bar[data-y="2025"] {
  background: var(--green);
  border-color: #fff;
  opacity: 1;
  box-shadow: 0 0 18px 2px rgba(201, 253, 124, 0.55);
  animation: historyBarGlow 2.4s ease-in-out infinite;
}
@keyframes historyBarGlow {
  0%,
  100% {
    box-shadow: 0 0 14px 1px rgba(201, 253, 124, 0.4);
  }
  50% {
    box-shadow: 0 0 30px 6px rgba(201, 253, 124, 0.82);
  }
}
@media (prefers-reduced-motion: reduce) {
  .history__bars .history__bar {
    animation: none;
  }
}
.history__chart--2016 .history__bar[data-y="2016"]::after,
.history__chart--2017 .history__bar[data-y="2017"]::after,
.history__chart--2018 .history__bar[data-y="2018"]::after,
.history__chart--2019 .history__bar[data-y="2019"]::after,
.history__chart--2020 .history__bar[data-y="2020"]::after,
.history__chart--2021 .history__bar[data-y="2021"]::after,
.history__chart--2022 .history__bar[data-y="2022"]::after,
.history__chart--2023 .history__bar[data-y="2023"]::after,
.history__chart--2024 .history__bar[data-y="2024"]::after,
.history__chart--2025 .history__bar[data-y="2025"]::after {
  color: var(--green);
}

/* ---- month-note cards (451 wide, radius 24, padding 24) ---- */
.history__note {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 55%), rgba(21, 21, 26, 0.4);
  border: 1px solid transparent;
}
.history__note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* month — Object Sans 700 24px/28.8 solid white (per comp) */
.history__month {
  position: relative;
  font-family: var(--font);
  font-weight: 700;
  font-size: 24px;
  line-height: 28.8px;
  color: #fff;
  margin-bottom: 16px;
}
/* body — Object Sans 400 16px/24 white */
.history__text {
  position: relative;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}

/* ---- right column photos — fluid img (845 wide), radius 16 ---- */
.history__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-sizing: border-box;
  padding: 8px;
  background: #f2f2f7;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
/* 2-up photo row (side-by-side pairs, e.g. 2024 / 2025) */
.history__photos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------------- TABLET ---------------- */
@media (max-width: 1100px) {
  .history__year {
    grid-template-columns: minmax(340px, 451px) 1fr;
    gap: 20px;
    padding: 32px;
  }
  .history__left,
  .history__right {
    width: 100%;
  }
}

/* ---------------- MOBILE (≤700px) — single column full-width ---------------- */
@media (max-width: 700px) {
  .history {
    padding: 0 0 12px;
  }
  .history__inner {
    padding: 0 16px;
  }

  .history__band {
    min-height: 200px;
    border-radius: 16px;
    padding: 16px;
  }
  .history__tile {
    font-size: 40px;
    line-height: 48px;
  }
  .history__tile--a {
    left: -2%;
    top: 0;
  }
  .history__tile--b {
    left: 30%;
    top: 70px;
  }
  .history__tile--c {
    left: 4%;
    top: 120px;
  }
  .history__tile--d {
    right: 0;
    top: 4px;
  }
  .history__tile--e {
    left: 40%;
    top: -6px;
  }
  .history__tile--f {
    left: 50%;
    top: 74px;
  }
  .history__tile--g {
    right: 0;
    top: 74px;
  }
  .history__tile--h {
    left: 10%;
    top: 150px;
  }
  .history__tile--i {
    right: 4%;
    top: 150px;
  }
  .history__tile--j {
    right: 34%;
    top: 140px;
  }
  .history__pill {
    max-width: 100%;
    min-height: 0;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 26px;
    line-height: 32px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.48);
  }

  .history__timeline {
    gap: 12px;
    margin-top: 12px;
  }
  .history__year {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 16px;
    border-radius: 16px;
  }
  .history__left,
  .history__right {
    width: 100%;
    gap: 12px;
  }
  .history__left {
    position: static; /* no sticky when stacked */
  }
  .history__label {
    font-size: 24px;
    line-height: 30px;
  }

  .history__chart {
    min-height: 0;
    padding: 16px;
    border-radius: 16px;
  }
  .history__metric {
    font-size: 12px;
    line-height: 14.4px;
  }
  .history__metric-label {
    font-size: 12px;
    line-height: 14.4px;
  }
  .history__metric-value {
    font-size: 18px;
  }
  .history__metric--gifts {
    margin-top: 12px;
  }
  .history__bars {
    gap: 5px;
    height: 150px;
    margin-top: 16px;
    margin-bottom: 24px;
  }
  .history__bar {
    max-width: none;
  }
  .history__bar::after {
    font-size: 9px;
    margin-top: 8px;
  }

  .history__note {
    padding: 16px;
    border-radius: 16px;
  }
  .history__month {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 10px;
  }
  .history__text {
    font-size: 14px;
    line-height: 20px;
  }

  .history__shot {
    border-radius: 12px;
  }
  .history__photos-row {
    gap: 12px;
  }
}

/* ===================== PROJECTS ===================== */
/* ============ PROJECTS — Успешные проекты ============ */
.projects {
  padding: 12px 0 0;
  background: var(--bg);
  font-family: var(--font);
}
.projects__inner {
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Green sticker band ---- */
.projects__band {
  position: relative;
  height: 341px;
  border-radius: 64px;
  background: var(--green);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects__stickers {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 0 16px;
  padding: 0 16px;
}
.projects__sticker {
  font-weight: 800;
  font-size: 80px;
  line-height: 96px;
  color: var(--card);
  white-space: nowrap;
}

/* ---- band word-clouds: uniform faded words + a living, twinkling motion ---- */
/* opacity (not color-alpha) so it stays consistent even though team/letters/history
   reset their own color later; this is the single source of truth for "faded". */
.facts__tile,
.history__tile,
.team__tile,
.letters__tile,
.projects__sticker {
  color: var(--card);
  opacity: 0.16;
  will-change: transform, opacity;
}

/* Organic phase scatter shared by every band: tiles fall into 6 delay buckets,
   so the cloud shimmers/twinkles out of phase instead of pulsing in unison. */
.facts__tile:nth-child(6n),
.history__tile:nth-child(6n),
.team__tile:nth-child(6n),
.letters__tile:nth-child(6n),
.projects__sticker:nth-child(6n) {
  animation-delay: -0.7s;
}
.facts__tile:nth-child(6n + 1),
.history__tile:nth-child(6n + 1),
.team__tile:nth-child(6n + 1),
.letters__tile:nth-child(6n + 1),
.projects__sticker:nth-child(6n + 1) {
  animation-delay: -1.9s;
}
.facts__tile:nth-child(6n + 2),
.history__tile:nth-child(6n + 2),
.team__tile:nth-child(6n + 2),
.letters__tile:nth-child(6n + 2),
.projects__sticker:nth-child(6n + 2) {
  animation-delay: -3.1s;
}
.facts__tile:nth-child(6n + 3),
.history__tile:nth-child(6n + 3),
.team__tile:nth-child(6n + 3),
.letters__tile:nth-child(6n + 3),
.projects__sticker:nth-child(6n + 3) {
  animation-delay: -4.3s;
}
.facts__tile:nth-child(6n + 4),
.history__tile:nth-child(6n + 4),
.team__tile:nth-child(6n + 4),
.letters__tile:nth-child(6n + 4),
.projects__sticker:nth-child(6n + 4) {
  animation-delay: -5.5s;
}
.facts__tile:nth-child(6n + 5),
.history__tile:nth-child(6n + 5),
.team__tile:nth-child(6n + 5),
.letters__tile:nth-child(6n + 5),
.projects__sticker:nth-child(6n + 5) {
  animation-delay: -6.7s;
}

/* facts «компания» — twinkle: words glow up + lift as the wave passes */
.facts__tile {
  animation: bandTwinkle 7s ease-in-out infinite;
}
/* history «история» — glow + a gentle horizontal sway */
.history__tile {
  animation: bandGlow 8s ease-in-out infinite;
}
/* projects «проекты» — breathe: glow + a touch of scale */
.projects__sticker {
  animation: bandBreathe 6.5s ease-in-out infinite;
}
/* team «команда» — ripple: glow + vertical wave */
.team__tile {
  animation: bandRipple 7.5s ease-in-out infinite;
}
/* letters «письма» — flicker: glow + slow rotation wobble */
.letters__tile {
  animation: bandFlicker 8.5s ease-in-out infinite;
}

@keyframes bandTwinkle {
  0%,
  100% {
    opacity: 0.08;
    transform: translateY(0) scale(0.98);
  }
  50% {
    opacity: 0.26;
    transform: translateY(-6px) scale(1.05);
  }
}
@keyframes bandGlow {
  0%,
  100% {
    opacity: 0.08;
    transform: translateX(0) scale(0.99);
  }
  50% {
    opacity: 0.24;
    transform: translateX(10px) scale(1.04);
  }
}
@keyframes bandBreathe {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.26;
    transform: scale(1.05);
  }
}
@keyframes bandRipple {
  0%,
  100% {
    opacity: 0.08;
    transform: translateY(0);
  }
  50% {
    opacity: 0.24;
    transform: translateY(-12px);
  }
}
@keyframes bandFlicker {
  0%,
  100% {
    opacity: 0.08;
    transform: rotate(-2deg) scale(0.99);
  }
  50% {
    opacity: 0.24;
    transform: rotate(2deg) scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .facts__tile,
  .history__tile,
  .team__tile,
  .letters__tile,
  .projects__sticker {
    animation: none;
  }
}
.projects__pill {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.88));
  box-shadow: 0 8px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
  font-weight: 800;
  font-size: 80px;
  line-height: 96px;
  text-align: center;
  color: var(--green);
  white-space: nowrap;
}
.projects__pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- Vertical stack of feature blocks ---- */
.projects__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Feature block (dark card) ---- */
.projects__block {
  position: relative;
  display: grid;
  grid-template-columns: 451px 845px;
  gap: 16px;
  padding: 40px;
  border-radius: 40px;
  background: var(--card);
  overflow: clip; /* clip (not hidden) so the sticky left card isn't trapped in a scroll container */
}
.projects__block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.projects__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30%;
  height: 70%;
  border-radius: 50%;
  filter: blur(320px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}
.projects__glow--blue {
  background: #7cbffd;
}
.projects__glow--gold {
  background: #fdd17c;
}

/* text column */
.projects__info {
  position: sticky;
  top: 24px;
  z-index: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 40px;
  background:
    radial-gradient(140% 120% at 30% 0%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 55%), rgba(21, 21, 26, 0.4);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}
.projects__heading {
  margin: 0;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  text-transform: uppercase;
  color: #fff;
}
.projects__text {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}
.projects__link {
  font-size: 16px;
  line-height: 24px;
  color: var(--green);
  text-decoration: none;
}

/* image column */
.projects__shots {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.projects__window {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.projects__bar {
  display: block;
  height: 27px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.projects__bar::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}
.projects__shot {
  display: block;
  width: 100%;
  height: auto;
  padding: 0 8px 8px;
  background: #f2f2f7;
  box-sizing: border-box;
}

/* ---- А также ---- */
.projects__also {
  display: block;
}
.projects__also-inner {
  position: relative;
  padding: 40px;
  border-radius: 40px;
  background: var(--card);
  overflow: hidden;
}
.projects__also-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.projects__also-title {
  position: relative;
  z-index: 2;
  margin: 0 0 28px;
  text-align: center;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #999);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.projects__cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.projects__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: 40px;
  background: #15151a;
  position: relative;
}
.projects__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.projects__card-icon {
  width: 64px;
  height: 64px;
  flex: none;
  margin-bottom: 12px;
  font-size: 0; /* hide any fallback text */
  background: center / contain no-repeat;
}
.projects__card-icon--money {
  background-image: url("../assets/icon-money.svg");
}
.projects__card-icon--crm {
  background-image: url("../assets/icon-crm.svg");
}
.projects__card-icon--store {
  background-image: url("../assets/icon-store.svg");
}
.projects__card-heading {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #999);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.projects__card-text {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

/* ============ TABLET ≤900px ============ */
@media (max-width: 900px) {
  .projects__block {
    grid-template-columns: 1fr;
  }
  .projects__info {
    position: static; /* no sticky when stacked */
  }
  .projects__cards {
    grid-template-columns: 1fr;
  }
}

/* ============ MOBILE ≤700px ============ */
@media (max-width: 700px) {
  .projects {
    padding: 24px 0 0;
  }
  .projects__inner {
    padding: 0 12px;
    gap: 12px;
  }
  .projects__band {
    height: auto;
    padding: 34px 12px;
    border-radius: 24px;
  }
  .projects__stickers {
    gap: 0 6px;
    padding: 0 8px;
  }
  .projects__sticker {
    font-size: 40px;
    line-height: 48px;
  }
  .projects__pill {
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 32px;
    line-height: 40px;
    white-space: normal;
  }
  .projects__pill::before {
    border-radius: 12px;
  }

  .projects__stack {
    gap: 12px;
  }
  .projects__block {
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }
  .projects__block::before {
    border-radius: 24px;
  }
  .projects__info {
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
  }
  .projects__info::before {
    border-radius: 24px;
  }
  .projects__heading {
    font-size: 24px;
    line-height: 30px;
  }
  .projects__text {
    font-size: 14px;
  }
  .projects__link {
    font-size: 14px;
  }

  .projects__shots {
    gap: 12px;
  }

  .projects__also-inner {
    padding: 16px;
    border-radius: 24px;
  }
  .projects__also-inner::before {
    border-radius: 24px;
  }
  .projects__also-title {
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 30px;
  }
  .projects__card {
    padding: 20px;
    border-radius: 24px;
  }
  .projects__card::before {
    border-radius: 24px;
  }
  .projects__card-heading {
    font-size: 22px;
    line-height: 28px;
  }
  .projects__card-text {
    font-size: 14px;
  }
}

/* ===================== TEAM ===================== */
/* ===================================================================
   TEAM — matches Figma sec_2014_3782_10 at 1440 (inner 1392).
   Flow + CSS grid. No absolute layout (overlays only). BEM. Shared vars.
   =================================================================== */
.team {
  padding: 12px 0 80px;
}
.team__inner {
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

/* ---- green sticker band ---- */
.team__band {
  position: relative;
  height: 341px;
  border-radius: var(--r-card);
  background: var(--green);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team__tiles {
  position: absolute;
  inset: -50px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-content: center;
  justify-content: center;
  transform: rotate(-5deg) scale(1.12);
  pointer-events: none;
  user-select: none;
}
.team__tile {
  font-family: var(--font);
  font-weight: 800;
  font-size: 80px;
  line-height: 0.9;
  color: var(--card);
  white-space: nowrap;
}
.team__pill {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  border-radius: 24px;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.77));
  outline: 1px solid rgba(153, 153, 153, 0.16);
  outline-offset: -1px;
  box-shadow: 0 8px 80px rgba(0, 0, 0, 0.48);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.team__pill-text {
  font-family: var(--font);
  font-weight: 800;
  font-size: 80px;
  line-height: 96px;
  color: var(--green);
  white-space: nowrap;
}

/* ---- section heading pill (gradient text on dark pill) ---- */
.team__heading {
  position: relative;
  align-self: center;
  margin: 96px 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 60px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  text-transform: uppercase;
  text-align: center;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.team__heading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 60px;
  background: #101011;
}

/* ---- founders / sales-heads panel (1392x559, radius 40) ---- */
.team__founders {
  position: relative;
  min-height: 559px;
  background: var(--card);
  border-radius: 40px;
  padding: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.team__founders::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.team__founders::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  width: 785px;
  max-width: 90%;
  aspect-ratio: 785 / 588;
  border-radius: 50%;
  background: rgba(201, 253, 124, 0.1);
  filter: blur(160px);
  pointer-events: none;
}
.team__founders-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start; /* don't stretch rows, so the photo box keeps its aspect-ratio */
  gap: 35px;
}
.team__founder {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  height: 392px;
  border-radius: 24px;
}

/* fixed-ratio box around the photo (aspect-ratio works reliably on the box,
   not on the <img> which has width/height presentation-hint attrs) */
.team__founder-box {
  position: relative;
  width: 100%;
  aspect-ratio: 302 / 392;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
}
.team__founder-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team__founder-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 26.4px;
  color: var(--white);
}
.team__founder-role {
  color: var(--white);
}

/* ---- marketing department (2-col dark cards) ---- */
.team__mkt {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.team__mcol {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team__mcard {
  position: relative;
  background: var(--card);
  border-radius: 40px;
  padding: 32px;
}
.team__mcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  outline: 1px solid rgba(255, 255, 255, 0.24);
  outline-offset: -1px;
  pointer-events: none;
}
.team__mcard-inner {
  position: relative;
  background: var(--bg);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}
.team__mcard-head {
  display: flex;
  align-items: center;
  gap: 24px;
}
.team__mcard-head--noavatar {
  display: block;
}
.team__mcard-avatar {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  border-radius: 18.29px;
  object-fit: cover;
  background: var(--green);
  display: block;
}
.team__mcard-id {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 15px;
  background: #828282;
  color: var(--card);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 16.8px;
}
.team__tag--blue {
  background: #7c98fd;
  font-size: 16px;
  line-height: 19.2px;
}
.team__mcard-role {
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 19.2px;
  color: #d1d1d1;
}
.team__mcard-name {
  font-family: var(--font);
  font-weight: 500;
  font-size: 24px;
  line-height: 22px;
  color: var(--white);
}
.team__mlist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team__mitem {
  position: relative;
  padding-left: 24px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}
.team__mitem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #6d738a;
  box-shadow: 0 4px 0 #6d738a;
}
.team__mlist--checks {
  gap: 16px;
}
.team__mlist--checks .team__mitem {
  padding-left: 23px;
  font-size: 15px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.88);
}
.team__mlist--checks .team__mitem::before {
  content: "";
  top: 4px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #6d738a;
  border-radius: 2px;
  transform: none;
  background: none;
  box-shadow: none;
}

/* ---- direct sales managers (4-col round-avatar cards, 336 / gap 16) ---- */
.team__managers {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.team__manager {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team__manager-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(153, 153, 153, 0.24) 100%);
  overflow: hidden; /* keep the photo clipped inside the circle */
}
.team__manager-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* keep faces in frame, crop the bottom */
  display: block;
}
.team__manager-name {
  margin-top: 24px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 24px;
  line-height: 28.8px;
  color: var(--white);
  text-align: center;
}
.team__manager-caption {
  margin-top: 11px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--white);
  text-align: center;
}

/* ---------------- TABLET ---------------- */
@media (max-width: 1100px) {
  .team__founders-grid {
    gap: 24px;
  }
  .team__managers {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .team__mkt {
    flex-direction: column;
  }
}

/* ---------------- MOBILE (<=700px) ---------------- */
@media (max-width: 700px) {
  .team {
    padding: 12px 0 48px;
  }
  .team__inner {
    padding: 0 16px;
  }

  .team__band {
    height: 180px;
    border-radius: 32px;
  }
  .team__tile {
    font-size: 40px;
    line-height: 48px;
  }
  .team__pill {
    padding: 8px 18px;
    border-radius: 16px;
  }
  .team__pill-text {
    font-size: 34px;
    line-height: 40px;
  }

  .team__heading {
    margin: 48px 0 24px;
    padding: 12px 20px;
    font-size: 22px;
    line-height: 28px;
  }

  /* founders / sales-heads -> 2-col */
  .team__founders {
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
  }
  .team__founders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .team__founder-box {
    border-radius: 16px;
  }
  .team__founder-name {
    font-size: 18px;
    line-height: 22px;
  }

  /* marketing -> 1-col */
  .team__mkt {
    flex-direction: column;
    gap: 12px;
  }
  .team__mcard {
    border-radius: 24px;
    padding: 16px;
  }
  .team__mcard-inner {
    border-radius: 16px;
    padding: 18px;
    gap: 18px;
  }
  .team__mcard-head {
    gap: 14px;
  }
  .team__mcard-avatar {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
    border-radius: 13px;
  }
  .team__mcard-name {
    font-size: 20px;
  }

  /* managers -> 2-col */
  .team__managers {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .team__manager {
    border-radius: 18px;
    padding: 16px;
  }
  .team__manager-name {
    margin-top: 16px;
    font-size: 18px;
    line-height: 22px;
  }
  .team__manager-caption {
    margin-top: 8px;
    font-size: 15px;
    line-height: 18px;
  }
}

/* ===================== LETTERS ===================== */
/* ===================================================================
   FELIZ — LETTERS (благодарственные письма). Flow + CSS grid, BEM.
   Desktop = fixed 1440 design (band 1392x341, 3-col card grid gap 16).
   =================================================================== */
.letters {
  background: var(--bg);
}
.letters__inner {
  max-width: 1392px;
  margin: 0 auto;
  padding: 12px var(--gutter) 24px;
}

/* --- green sticker band (1392x341, radius 64) --- */
.letters__banner {
  position: relative;
  height: 341px;
  background: var(--green);
  border-radius: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* decorative scattered word tiles behind the pill */
.letters__scatter {
  position: absolute;
  inset: -50px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 18px 28px;
  transform: rotate(-5deg) scale(1.12);
  overflow: hidden;
  pointer-events: none;
}
.letters__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  font-family: var(--font);
  font-weight: 800;
  font-size: 80px;
  line-height: 0.9;
  white-space: nowrap;
}

/* centered dark glass pill with green title (1177x103, radius 24) */
.letters__pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-width: 1177px;
  padding: 10px 32px;
  border-radius: 24px;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.77));
  outline: 1px solid rgba(153, 153, 153, 0.16);
  outline-offset: -1px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 80px rgba(0, 0, 0, 0.48);
  color: var(--green);
  font-family: var(--font);
  font-weight: 800;
  font-size: 80px;
  line-height: 96px;
  text-align: center;
  white-space: nowrap;
}

/* --- letters grid: 3 columns, container 1392, gap 16 --- */
.letters__grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.letters__card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
}
.letters__shot {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------- MOBILE (<=700px): 2-column grid ---------------- */
@media (max-width: 700px) {
  .letters__inner {
    padding: 12px 16px 16px;
  }
  .letters__banner {
    height: auto;
    min-height: 120px;
    border-radius: 24px;
    padding: 24px 16px;
  }
  .letters__scatter {
    inset: -24px -16px;
    gap: 0 8px;
  }
  .letters__tile {
    padding: 6px 16px;
    font-size: 32px;
    line-height: 38px;
  }
  .letters__pill {
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 24px;
    line-height: 30px;
    white-space: normal;
  }
  .letters__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
  }
  .letters__card {
    border-radius: 8px;
  }
}

/* ===================== VIDEO PLAYER MODAL + PROJECT LINKS ===================== */
/* play button overlay on the video card */
.video__play {
  position: absolute;
  right: 7%;
  bottom: 11%;
  width: 104px;
  height: 104px;
  border: none;
  border-radius: 50%;
  background: rgba(201, 253, 124, 0.94);
  cursor: pointer;
  z-index: 7;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 60px rgba(201, 253, 124, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.video__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 30px solid #0c1207;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}
.video__play::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(201, 253, 124, 0.5);
  animation: vpulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes vpulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}
.video__play:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 80px rgba(201, 253, 124, 0.45);
}
.video__btn {
  cursor: pointer;
}

/* modal */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.vmodal.is-open {
  opacity: 1;
  visibility: visible;
}
.vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 4, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vmodal__dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vmodal.is-open .vmodal__dialog {
  transform: none;
}
.vmodal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(201, 253, 124, 0.35);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.6),
    0 0 0 6px rgba(201, 253, 124, 0.06);
}
.vmodal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* loading overlay: poster + spinner shown until the player iframe is ready */
.vmodal__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #000 url("../assets/video-poster.webp") center/cover no-repeat;
  transition: opacity 0.35s ease;
}
.vmodal__loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.vmodal__loading::after {
  content: "";
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-top-color: #c9fd7c;
  animation: vspin 0.8s linear infinite;
}
.vmodal__frame.is-loaded .vmodal__loading {
  opacity: 0;
  pointer-events: none;
}
@keyframes vspin {
  to {
    transform: rotate(360deg);
  }
}
.vmodal__close {
  position: absolute;
  top: -54px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.3s ease;
}
.vmodal__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.vmodal__close span:first-child {
  transform: rotate(45deg);
}
.vmodal__close span:last-child {
  transform: rotate(-45deg);
}
.vmodal__close:hover {
  background: var(--green);
  border-color: var(--green);
  transform: rotate(90deg);
}
.vmodal__close:hover span {
  background: #0c1207;
}
body.vmodal-open {
  overflow: hidden;
}
@media (max-width: 700px) {
  .video__play {
    width: 68px;
    height: 68px;
  }
  .video__play::before {
    margin-left: 5px;
    border-left-width: 20px;
    border-top-width: 12px;
    border-bottom-width: 12px;
  }
  .vmodal {
    padding: 16px;
  }
  .vmodal__close {
    top: -48px;
  }
}

/* project links (open feliz.ru sites) */
.projects__link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-size 0.3s ease,
    color 0.25s ease;
}
.projects__link:hover {
  color: var(--green);
  background-size: 100% 2px;
}
.projects__link-ico {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.4em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.projects__link:hover .projects__link-ico {
  opacity: 1;
}
