/* ===================================================================
   Prosper Pay — главная страница по макету Figma (node 5:1335)
   Автосборка из посекционных фрагментов. Только для index.html.
   =================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #000; }
body { font-family: 'Inter', sans-serif; color: #f1f1ef; -webkit-font-smoothing: antialiased; }
img { display: block; }
a { text-decoration: none; }
.fg-gap { height: 100px; }


/* ============ 01-nav ============ */
/* 01-nav — навбар Prosper Group (Figma node 5:1539, 1726x114) */

.fg-nav {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(121.3px);
  -webkit-backdrop-filter: blur(121.3px);
  padding: 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

.fg-nav__inner {
  max-width: 1662px;
  margin: 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Логотип */
.fg-nav__logo {
  display: flex;
  align-items: center;
  padding-bottom: 6px;
  text-decoration: none;
}

.fg-nav__logo-img {
  display: block;
  width: 211px;
  height: auto;
  aspect-ratio: 465 / 86;
  object-fit: cover;
}

/* Центральное меню */
.fg-nav__menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
}

.fg-nav__link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #adadad;
  text-decoration: none;
  text-align: center;
}

.fg-nav__link:hover {
  color: #ffffff;
}

.fg-nav__link--active {
  color: #ffffff;
}

.fg-nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fg-nav__chevron {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.85;
}

/* Правый блок: язык + демо */
.fg-nav__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fg-nav__lang {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px 12px 16px;
  border: 1px solid transparent;
  border-radius: 11.2px;
  background-color: #0f1014;
  background-image: linear-gradient(166deg, #1e1e1e 7.27%, rgba(31, 32, 37, 0.5) 38.84%, #0f1014 95.57%);
  cursor: pointer;
}

.fg-nav__lang-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.fg-nav__lang-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17.578px;
  line-height: 18px;
  color: #ffffff;
}

.fg-nav__demo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 11.2px;
  background: #6a3dc3;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17.578px;
  line-height: 18px;
  color: #ffffff;
  text-decoration: none;
}

/* ============ 02-hero ============ */
/* 02-hero — hero-секция (Figma node 5:1528, 1726x780) */

.fg-hero {
  position: relative;
  width: 100%;
  height: 780px;
  background: #000000;
  overflow: hidden;
}

/* Радиальное фиолетовое свечение справа */
.fg-hero__glow {
  position: absolute;
  left: calc(50% - 729px); /* 134px на канве 1726px */
  top: -632px;
  width: 1500px;
  height: 1500px;
  border-radius: 337px;
  background: radial-gradient(
    1023.5px circle at 1071px 963px,
    rgba(229, 144, 255, 0.2) 0%,
    rgba(244, 144, 255, 0) 44.23%,
    rgba(244, 144, 255, 0) 100%
  );
  pointer-events: none;
}

.fg-hero__content {
  position: relative;
  max-width: 1444px;
  margin: 0 auto;
  height: 100%;
  padding: 118px 0 0 65px;
  box-sizing: border-box;
}

.fg-hero__title {
  margin: 0;
  max-width: 925px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1.2;
  letter-spacing: -1.76px;
  color: #f1f1ef;
}

.fg-hero__subtitle {
  margin: 41px 0 0;
  max-width: 883px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.18px;
  color: #adadad;
}

.fg-hero__actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 58px;
  margin-left: -6px; /* кнопки в макете чуть левее текста */
}

.fg-hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  padding: 13px 19.7px;
  box-sizing: border-box;
  border-radius: 11.2px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17.578px;
  line-height: 18px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.fg-hero__btn--primary {
  background: #6a3dc3;
}

.fg-hero__btn--ghost {
  background: rgba(106, 61, 195, 0.35);
  border: 1px solid #6a3dc3;
}

/* ============ 03-stats ============ */
/* 03-stats — секция «Нам доверяют / Партнёры» (Figma node 5:1569, 1726x529) */

.fg-stats {
  width: 100%;
  background: #07080a;
  padding: 124px 52px 100px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fg-stats__container {
  width: 100%;
  max-width: 1266px;
  padding: 0 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.fg-stats__block--trust {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.fg-stats__block--partners {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fg-stats__title {
  margin: 0;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 48px;
  color: #f1f1ef;
  text-align: center;
}

.fg-stats__title--partners {
  font-weight: 500;
  font-size: 36px;
}

/* Лента логотипов клиентов — бесконечная прокрутка (реальные белые PNG со старого сайта) */
.fg-stats__marquee {
  width: 100vw;
  align-self: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.fg-stats__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding: 0 32px;
  animation: fg-stats-scroll 55s linear infinite;
  will-change: transform;
}

.fg-stats__marquee:hover .fg-stats__track {
  animation-play-state: paused;
}

@keyframes fg-stats-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.fg-stats__client {
  flex: none;
  height: 34px;
  width: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .fg-stats__track { animation: none; }
}

/* Партнёры */
.fg-stats__partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-left: 57px;
}

.fg-stats__partner {
  font-size: 36px;
  line-height: 48px;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

.fg-stats__partner--hr4people {
  font-family: 'Intel One Mono', 'Courier New', monospace;
  font-weight: 700;
}

.fg-stats__partner--qazinnovations {
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-weight: 600;
}

/* ============ 04-sec ============ */
/* Section 04 — "Продукты Prosper" (Figma node 5:1639) */

.fg-s4 {
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.fg-s4__inner {
  width: 1308px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Header */
.fg-s4__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fg-s4__title {
  margin: 0;
  font-weight: 700;
  font-size: 48px;
  line-height: 88px;
  letter-spacing: -1.76px;
  color: #f1f1ef;
  white-space: nowrap;
}

.fg-s4__subtitle {
  margin: 0;
  width: 884px;
  max-width: 100%;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: #adadad;
}

/* Cards row (carousel, overflows to the right) */
.fg-s4__cards {
  width: 100%;
  display: flex;
  align-items: stretch; /* все карточки одной высоты */
  gap: 24px;
  overflow: hidden;
}

.fg-s4__card-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  padding: 10px;
}

.fg-s4__card {
  width: 384.665px;
  display: flex;
  flex-direction: column;
  background: #101010;
  border-radius: 20px;
  overflow: hidden;
}

.fg-s4__card--h507 {
  height: auto; /* высота выравнивается по ряду */
}

.fg-s4__card-media {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  background: #007aff;
  overflow: hidden;
}

.fg-s4__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-s4__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
  flex-grow: 1;
}

.fg-s4__card-body--gap60,
.fg-s4__card-body--gap25,
.fg-s4__card-body--between { gap: 25px; }

/* «Подробнее» всегда прижата к низу карточки */
.fg-s4__card-link { margin-top: auto; }

.fg-s4__card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.fg-s4__card-eyebrow {
  font-weight: 500;
  font-size: 10px;
  line-height: 28px;
  text-transform: uppercase;
  color: #a594fd;
}

.fg-s4__card-title {
  margin: 0;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15; /* двухстрочные заголовки не слипаются */
  color: #f1f1ef;
  overflow-wrap: break-word;
}

.fg-s4__card-desc {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.16px;
  color: #adadad;
}

.fg-s4__card-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.16px;
  color: #a594fd;
}

.fg-s4__chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-s4__chevron img {
  display: block;
  width: 8px;
  height: 14px;
}

/* Carousel nav arrows */
.fg-s4__nav {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.fg-s4__nav-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-s4__nav-btn img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============ 05-why ============ */
/* Section 05 — "Почему Prosper Pay" (Figma node 5:1336) */

.fg-why {
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* Dark panel 1444px, rounded 24px.
   In the Figma layout the panel is 1995px tall and its background
   extends behind the next section; here it hugs its content. */
.fg-why__panel {
  width: 1444px;
  max-width: 100%;
  background: #07080a;
  border-radius: 24px;
  padding: 60px 10px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fg-why__inner {
  width: 1308px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Header */
.fg-why__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fg-why__title {
  margin: 0;
  font-weight: 700;
  font-size: 48px;
  line-height: 88px;
  letter-spacing: -1.76px;
  color: #f1f1ef;
  white-space: nowrap;
}

.fg-why__subtitle {
  margin: 0;
  width: 884px;
  max-width: 100%;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: #adadad;
}

/* Card rows: 2 x 3 */
.fg-why__row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.fg-why__card {
  flex: 1 0 0;
  min-width: 1px;
  height: 396px;
  background: #101010;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fg-why__card-badge {
  width: 100%;
  padding: 56px 0 24px;
  display: flex;
  justify-content: center;
}

.fg-why__card-badge img {
  display: block;
  width: 115px;
  height: 115px;
}

.fg-why__card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 32px 48px;
  box-sizing: border-box;
}

.fg-why__card-title {
  margin: 0;
  width: 100%;
  font-weight: 400;
  font-size: 23.813px;
  line-height: 24px;
  color: #f1f1ef;
  text-align: center;
}

.fg-why__card-desc {
  margin: 0;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: #adadad;
  text-align: center;
}

/* ============ 06-sec ============ */
/* Section 06 — "Для кого подходит экосистема" (Figma node 5:1598) */

.fg-s6 {
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* Panel: 1308px, bg #101010, radius 20, inner light top glow */
.fg-s6__panel {
  position: relative;
  width: 1308px;
  max-width: 100%;
  background: #101010;
  border-radius: 20px;
  box-shadow: none;
}

.fg-s6__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
  padding: 24px 48px 48px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: inherit;
}

/* Header */
.fg-s6__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.fg-s6__title {
  margin: 0;
  font-weight: 600;
  font-size: 48px;
  line-height: 88px;
  letter-spacing: -1.76px;
  color: #f1f1ef;
  white-space: nowrap;
}

.fg-s6__subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.24px;
  color: #adadad;
}

/* Content: tabs left, card right */
.fg-s6__content {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.fg-s6__tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.fg-s6__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #101010;
  border: 0;
  border-radius: 16px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.fg-s6__tab--active {
  background: #9364ff;
  border: 1px solid #2b2b2b;
}

/* активная иконка — белая (как sparkle-white в макете) */
.fg-s6__tab--active .fg-s6__tab-icon {
  filter: brightness(0) invert(1);
}

.fg-s6__tab-icon {
  display: block;
  width: 18px;
  height: 19px;
  flex-shrink: 0;
}

.fg-s6__tab-label {
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #f1f1ef;
}

.fg-s6__tab-label--nowrap {
  white-space: nowrap;
}

/* Right card */
.fg-s6__card {
  width: 782px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  padding: 32px;
  box-sizing: border-box;
  background: #1a1a1a;
  border: 1px solid #101010;
  border-radius: 48px;
  overflow: hidden;
}

.fg-s6__card-media {
  width: 100%;
  height: 357px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.fg-s6__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.fg-s6__card-text {
  margin: 0;
  width: 100%;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.24px;
  color: #ffffff;
}

/* ============ 07-sec ============ */
/* Section 07 — "Результат для бизнеса — с первого месяца" (Figma node 5:1837, 1440x2139) */

.fg-s7 {
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* Panel: 1440px, transparent (page bg shows through), content column 1335px */
.fg-s7__panel {
  box-sizing: border-box;
  width: 1440px;
  max-width: 100%;
  padding: 55px 52px 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Header */
.fg-s7__header {
  width: 100%;
  max-width: 1335px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fg-s7__title {
  margin: 0;
  font-weight: 700;
  font-size: 48px;
  line-height: 88px;
  letter-spacing: -1.76px;
  color: #f1f1ef;
}

.fg-s7__subtitle {
  margin: 0;
  max-width: 1202px;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: #adadad;
}

/* Cards grid */
.fg-s7__grid {
  width: 100%;
  max-width: 1335px;
  box-sizing: border-box;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fg-s7__row {
  display: flex;
  gap: 24px;
}

/* Card shell: плоский тёмный фон как в Figma, radius 20 */
.fg-s7__card {
  position: relative;
  box-sizing: border-box;
  border-radius: 20px;
  border: none;
  background: #101010;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fg-s7__card--big {
  width: 623.73px;
  height: 755px;
}

.fg-s7__card--small {
  width: 407.82px;
  height: 625px;
  padding-top: 16px;
  gap: 16px;
}

/* Visual (exported app-UI mockups) */
.fg-s7__card-visual {
  width: 100%;
  flex-shrink: 0;
}

.fg-s7__card-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.fg-s7__card-visual--big {
  height: 560px;
}

.fg-s7__card-visual--small {
  height: 348.72px;
}

/* Card text */
.fg-s7__card-body {
  box-sizing: border-box;
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.fg-s7__card-body--center {
  align-items: center;
  text-align: center;
}

.fg-s7__card-title {
  margin: 0;
  font-weight: 400;
  font-size: 36px;
  line-height: 38px;
  color: #f1f1ef;
}

.fg-s7__card-title--big {
  line-height: 48px;
}

.fg-s7__card-text {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.18px;
  color: #adadad;
}

.fg-s7__card-text--left {
  text-align: left;
}

/* CTA */
.fg-s7__cta {
  width: 100%;
  max-width: 1335px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.fg-s7__cta-badge {
  width: 128.22px;
  height: 128.22px;
  display: block;
}

.fg-s7__cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fg-s7__cta-title {
  margin: 0;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1.76px;
  color: #f1f1ef;
  white-space: nowrap;
}

.fg-s7__cta-subtitle {
  margin: 0;
  max-width: 1016px;
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: #adadad;
}

.fg-s7__cta-btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #6a3dc3;
  border-radius: 11.2px;
  font-weight: 400;
  font-size: 24px;
  line-height: 18px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

/* ============ 08-sec ============ */
/* Section 08 — "Весь рабочий процесс — в кармане" (Figma node 5:2251, 1440x1504) */

.fg-s8 {
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.fg-s8__panel {
  box-sizing: border-box;
  width: 1440px;
  max-width: 100%;
  padding: 55px 52px 67px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Title */
.fg-s8__title {
  margin: 0;
  width: 100%;
  font-weight: 700;
  font-size: 48px;
  line-height: 88px;
  letter-spacing: -1.76px;
  text-align: center;
  color: #f1f1ef;
}

/* Feature cards row */
.fg-s8__features {
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.fg-s8__feature {
  flex: 1 0 0;
  min-width: 1px;
  height: 484.27px;
  box-sizing: border-box;
  background: #101010;
  border: 1px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 30px;
  box-shadow: none;
}

.fg-s8__feature-visual {
  width: 100%;
  height: 269.27px;
  flex-shrink: 0;
  background: #a594fd;
  overflow: hidden;
}

.fg-s8__feature-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-s8__feature-body {
  box-sizing: border-box;
  width: 100%;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.fg-s8__feature-title {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: #f1f1ef;
}

.fg-s8__feature-text {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.16px;
  color: #adadad;
}

/* "С чего начать" panel */
.fg-s8__start {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 714px;
  background: #101010;
  border-radius: 20px;
  padding: 24px 48px 48px;
  overflow: hidden;
  box-shadow: none;
}

.fg-s8__start-title {
  margin: 0;
  font-weight: 600;
  font-size: 48px;
  line-height: 88px;
  letter-spacing: -1.76px;
  color: #f1f1ef;
  white-space: nowrap;
}

.fg-s8__steps {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.fg-s8__step {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 16px;
}

.fg-s8__step-num {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #a594fd;
  border: none;
  border-radius: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  color: #f1f1ef;
}

.fg-s8__step-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  white-space: nowrap;
}

.fg-s8__step-title {
  margin: 0;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: #f1f1ef;
}

.fg-s8__step-desc {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: #adadad;
}

/* Phone mockups, clipped by the panel */
.fg-s8__phone {
  position: absolute;
  width: 319px;
  height: 648px;
  object-fit: cover;
  pointer-events: none;
}

.fg-s8__phone--1 {
  left: 622.73px;
  top: 277px;
}

.fg-s8__phone--2 {
  left: 622.73px;
  top: -406px;
}

.fg-s8__phone--3 {
  left: 968.73px;
  top: -300px;
}

.fg-s8__phone--4 {
  left: 968.73px;
  top: 383px;
}

/* ============ 09-integration ============ */
/* Section 09 — "Подключается к тому, что у вас уже есть" + сертификаты (Figma node 5:1393, 1444x1160) */

.fg-int {
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* Dark panel 1444px, radius 24, inner light glow */
.fg-int__panel {
  box-sizing: border-box;
  width: 1444px;
  max-width: 100%;
  background: #07080a;
  border-radius: 24px;
  padding: 60px 10px 40px;
  display: flex;
  justify-content: center;
  box-shadow: none;
}

.fg-int__inner {
  width: 1308px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Header */
.fg-int__head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fg-int__title {
  margin: 0;
  font-weight: 700;
  font-size: 48px;
  line-height: 88px;
  letter-spacing: -1.76px;
  color: #f1f1ef;
  white-space: nowrap;
}

.fg-int__subtitle {
  margin: 0;
  max-width: 1167px;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: #adadad;
}

/* Benefits: 2 rows x 2 items */
.fg-int__benefits {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fg-int__benefit-row {
  width: 100%;
  display: flex;
  gap: 10px;
}

.fg-int__benefit {
  flex: 1 0 0;
  min-width: 1px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 16px;
}

.fg-int__benefit--top {
  align-items: flex-start;
}

.fg-int__benefit-icon {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #00ad31;
  border: none;
  border-radius: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-int__benefit-icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.fg-int__benefit-text {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fg-int__benefit-title {
  margin: 0;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: #f1f1ef;
}

.fg-int__benefit-desc {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: #adadad;
}

/* Certificates label */
.fg-int__certs-label {
  margin: 0;
  width: 100%;
  font-weight: 500;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  text-transform: uppercase;
  color: #adadad;
}

/* Certificate cards */
.fg-int__certs {
  width: 100%;
  display: flex;
  align-items: stretch; /* карточки одной высоты — плашки выравниваются по низу */
  gap: 24px;
}

.fg-int__cert {
  flex: 1 0 0;
  min-width: 1px;
  background: #101010;
  border-radius: 20px;
  overflow: hidden;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fg-int__cert-text {
  box-sizing: border-box;
  width: 100%;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.fg-int__cert-text,
.fg-int__cert-text--fixed {
  height: 115px; /* фикс. высота текстового блока как в Figma — ссылки и плашки на одном уровне */
}

.fg-int__cert-title {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: #f1f1ef;
}

.fg-int__cert-title--tall {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-int__cert-desc {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.16px;
  color: #adadad;
}

.fg-int__cert-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.16px;
  color: #a594fd;
}

.fg-int__cert-chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-int__cert-chevron img {
  display: block;
  width: 8px;
  height: 14px;
}

/* Colored bottom strips */
.fg-int__cert-strip {
  position: relative;
  width: 100%;
  height: 142px;
  margin-top: auto; /* прижать плашку к низу карточки */
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-int__cert-strip--blue {
  background: #007aff;
}

.fg-int__cert-strip--purple {
  background: #a594fd;
}

.fg-int__cert-strip--green {
  background: #00ad31;
}

.fg-int__cert-icon {
  display: block;
  width: 47px;
  height: 55px;
}

.fg-int__cert-strip--green .fg-int__cert-icon {
  width: 54px;
  height: 67px;
}

.fg-int__cert-icon--1c {
  width: 126px;
  height: 84px;
}

/* ============ 10-sec ============ */
/* Section 10 — "Истории, которые вдохновляют двигаться вперёд" (Figma 5:1715) */

.fg-s10 {
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.fg-s10__panel {
  box-sizing: border-box;
  width: 1444px;
  min-height: 909px;
  background: #07080a;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.fg-s10__inner {
  width: 1308px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fg-s10__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fg-s10__title {
  margin: 0;
  width: 914px;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1.76px;
  color: #f1f1ef;
}

.fg-s10__subtitle {
  margin: 0;
  width: 884px;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: #adadad;
}

.fg-s10__cards {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.fg-s10__card {
  width: 384.665px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fg-s10__cover {
  box-sizing: border-box;
  width: 385px;
  height: 385px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fg-s10__cover--zammler {
  background: transparent;
}

.fg-s10__cover--rise {
  background: rgba(34, 0, 255, 0.2);
}

.fg-s10__cover--prosper {
  background: rgba(59, 14, 192, 0.5);
}

.fg-s10__brand {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1.76px;
  color: #ffffff;
  white-space: nowrap;
}

.fg-s10__meta {
  flex: 1; /* растягивает мету на всю высоту карточки */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fg-s10__card-title {
  margin: 0;
  padding-right: 22.53px;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: #f1f1ef;
}

.fg-s10__card-foot {
  margin-top: auto; /* «Читать кейс» у всех карточек на одном уровне внизу */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fg-s10__tag {
  font-weight: 500;
  font-size: 10px;
  line-height: 28px;
  text-transform: uppercase;
  color: #a594fd;
}

.fg-s10__read {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.fg-s10__read-label {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.16px;
  color: #a594fd;
  white-space: nowrap;
}

.fg-s10__chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-s10__chevron img {
  display: block;
  width: 8px;
  height: 14px;
}

/* ============ 11-sec ============ */
/* Section 11 — "Авторитетные СМИ пишут о нас" (Figma 5:1805) */

.fg-s11 {
  padding: 48px 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.fg-s11__inner {
  width: 1308px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.fg-s11__title {
  margin: 0;
  align-self: flex-start;
  width: 914px;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1.76px;
  color: #f1f1ef;
}

/* carousel track: 1864px wide, centered relative to the 1308px column,
   overflowing card edges are clipped by the section */
.fg-s11__viewport {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* прокрутка стрелками, скроллбар скрыт */
}
.fg-s11__viewport::-webkit-scrollbar { display: none; }

.fg-s11__track {
  flex-shrink: 0;
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.fg-s11__card {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 450px;
  padding: 36px;
  border: 1px solid transparent;
  border-radius: 20px;
  background-image: linear-gradient(125.47deg, #1f1f1f 14.966%, #101010 55.85%);
}

.fg-s11__card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-right: 22.53px;
}

.fg-s11__source {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fg-s11__logo {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.fg-s11__logo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fg-s11__logo > .fg-s11__cevf-mark {
  inset: auto;
  left: 4px;
  top: 5px;
  width: 25px;
  height: 23.474px;
  object-fit: cover;
}

.fg-s11__source-name {
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  color: #f1f1ef;
  white-space: nowrap;
}

.fg-s11__quote {
  margin: 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #f1f1ef;
}

.fg-s11__nav {
  display: flex;
  gap: 36px;
}

.fg-s11__nav-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fg-s11__nav-btn img {
  display: block;
  width: 44px;
  height: 44px;
}

/* ============ 12-sec ============ */
/* Section 12 — "Свяжитесь с нами" / контакты (Figma 5:1764) */

.fg-s12 {
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.fg-s12__inner {
  width: 1308px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fg-s12__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fg-s12__title {
  margin: 0;
  width: 914px;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1.76px;
  color: #f1f1ef;
}

.fg-s12__subtitle {
  margin: 0;
  width: 884px;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: #adadad;
}

.fg-s12__cards {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.fg-s12__card {
  flex: 1 0 0;
  min-width: 1px;
  background: #101010;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.fg-s12__icon-wrap {
  padding: 56px 24px 24px;
}

.fg-s12__badge {
  position: relative;
  display: block;
  width: 115px;
  height: 115px;
}

.fg-s12__badge-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fg-s12__badge-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.fg-s12__badge-icon--mail {
  width: 55px;
  height: 55px;
}

.fg-s12__badge-icon--person,
.fg-s12__badge-icon--chat {
  width: 73px;
  height: 73px;
}

.fg-s12__body {
  padding: 0 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.fg-s12__body--socials {
  gap: 44px;
}

.fg-s12__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.fg-s12__card-title {
  margin: 0;
  width: 320.67px;
  font-weight: 400;
  font-size: 24px;
  line-height: 24px;
  color: #f1f1ef;
}

.fg-s12__card-desc {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: #adadad;
}

.fg-s12__link {
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  color: #6663f6;
  text-decoration: none;
}

.fg-s12__socials {
  display: flex;
  gap: 44px;
}

.fg-s12__social {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
}

.fg-s12__social > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Instagram icon is composed of three exported vector layers */
.fg-s12__social--instagram {
  overflow: hidden;
}

.fg-s12__social--instagram .fg-s12__ig-frame {
  inset: 0 0.06% 0.02% 0;
  width: auto;
  height: auto;
}

.fg-s12__social--instagram .fg-s12__ig-lens {
  inset: 24.32%;
  width: auto;
  height: auto;
}

.fg-s12__social--instagram .fg-s12__ig-dot {
  inset: 17.3% 17.3% 70.7% 70.7%;
  width: auto;
  height: auto;
}

/* ============ 13-form ============ */
/* Section 13 — демо-форма "Запишитесь на закрытый демо-показ" (Figma 5:2423) */

.fg-form {
  display: flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.fg-form__panel {
  box-sizing: border-box;
  width: 1451px;
  border: 1px solid #262626;
  border-radius: 12px;
  background-image: linear-gradient(-46.27deg, #0e0c0c 25.193%, #101010 88.248%);
  box-shadow: none;
  padding: 100px 100px 100px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
}

.fg-form__intro {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fg-form__title {
  margin: 0;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1.76px;
  color: #f1f1ef;
}

.fg-form__subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: #adadad;
}

.fg-form__form {
  width: 634px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.fg-form__fields {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.fg-form__field {
  height: 114px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fg-form__label {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: #ffffff;
}

.fg-form__input {
  box-sizing: border-box;
  width: 100%;
  padding: 24px 20px;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid #262626;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  color: #f1f1ef;
  outline: none;
}

.fg-form__input::placeholder {
  color: #666666;
  opacity: 1;
}

.fg-form__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.fg-form__submit {
  box-sizing: border-box;
  width: 100%;
  padding: 18px 46px;
  background: #703bf7;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  white-space: nowrap;
  cursor: pointer;
}

.fg-form__note {
  margin: 0;
  width: 100%;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: #999999;
}

.fg-form__note-link {
  color: #999999;
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-position: from-font;
}

/* карточка «Новая история»: подпись «Скоро» вместо ссылки */
.fg-s10__read--soon { cursor: default; }
.fg-s10__read--soon .fg-s10__read-label { color: #adadad; }

/* ===== Защита от переполнения на экранах уже макета (1726px) ===== */
.fg-s4__inner, .fg-s10__inner, .fg-s11__inner, .fg-s12__inner,
.fg-int__inner, .fg-why__inner, .fg-s6__container, .fg-form__panel {
  max-width: 100%;
}
.fg-form__panel { width: 100%; max-width: 1451px; flex-wrap: wrap; }
.fg-form__form { max-width: 100%; }
.fg-s6__content { flex-wrap: wrap; }
.fg-s6__card { max-width: 100%; }

/* Карточки СМИ — кликабельные ссылки на статьи */
a.fg-s11__card {
  display: block;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
}
a.fg-s11__card:hover { transform: translateY(-3px); }

/* Отступ между контактами и демо-формой (236px в Figma) */
.fg-form { margin-top: 236px; }

/* Обложки кейсов — картинки из Figma */
.fg-s10__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Плавный скролл по якорям */
html { scroll-behavior: smooth; }

/* Дропдаун «Компания» (hover) */
.fg-nav__drop { position: relative; }
.fg-nav__dropmenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px; /* мостик для hover между кнопкой и меню */
  display: none;
  z-index: 200;
}
.fg-nav__drop:hover .fg-nav__dropmenu { display: block; }
.fg-nav__dropmenu-panel {
  min-width: 280px;
  background: #101010;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.fg-nav__dropmenu-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: #adadad;
  white-space: nowrap;
}
.fg-nav__dropmenu-panel a:hover {
  background: #1a1a1a;
  color: #ffffff;
}

/* Обложки кейсов не выходят за рамки */
.fg-s10__cover { overflow: hidden; }

/* ===== Модальные окна (Figma node 85:21480) ===== */
.fg-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fg-modal.is-open { display: flex; }
.fg-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fg-modal__panel {
  position: relative;
  width: 560px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #161616;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 32px;
}
.fg-modal__panel--center { text-align: center; width: 480px; }
.fg-modal__panel--wide { width: 720px; }
.fg-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  background: transparent;
  color: #adadad;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fg-modal__close:hover { color: #fff; border-color: #666; }
.fg-modal__title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: #f1f1ef;
}
.fg-modal__subtitle {
  margin: 0 0 24px;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #adadad;
}
.fg-modal__form { display: flex; flex-direction: column; gap: 16px; }
.fg-modal__field { display: flex; flex-direction: column; gap: 8px; }
.fg-modal__label {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: #ffffff;
}
.fg-modal__input {
  height: 44px;
  padding: 0 14px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid #262626;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #f1f1ef;
  outline: none;
}
.fg-modal__input::placeholder { color: #666; }
.fg-modal__input:focus { border-color: #703bf7; }
.fg-modal__submit {
  margin-top: 8px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #703bf7;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #ffffff;
  cursor: pointer;
}
.fg-modal__submit:hover { background: #7d4cf8; }
.fg-modal__submit--sm {
  width: 220px;
  margin: 0 auto;
  display: block;
}
.fg-modal__note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: #999999;
}
.fg-modal__note a { color: #a594fd; text-decoration: underline; }
.fg-modal__check {
  width: 56px;
  height: 56px;
  margin: 8px auto 20px;
  display: block;
}
.fg-modal__doc { margin-bottom: 24px; }
.fg-modal__doc-img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0d0d0d;
}
.fg-modal__pdf {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid #262626;
  border-radius: 8px;
  color: #f1f1ef;
  font-size: 14px;
  line-height: 20px;
}
.fg-modal__pdf:hover { border-color: #703bf7; }
.fg-modal__pdf img { width: 36px; height: 36px; }
.fg-modal__pdf b { font-size: 15px; }
.fg-modal__foot { display: flex; gap: 12px; justify-content: flex-end; }
.fg-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.fg-modal__btn--primary { background: #703bf7; color: #fff; }
.fg-modal__btn--primary:hover { background: #7d4cf8; }
.fg-modal__btn--ghost {
  background: transparent;
  border: 1px solid #3a3a3a;
  color: #f1f1ef;
}
.fg-modal__btn--ghost:hover { border-color: #703bf7; }

/* Карточки сертификатов кликабельны */
.fg-int__cert { cursor: pointer; }

/* Модалка продукта */
.fg-modal__ptag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(112, 59, 247, 0.18);
  color: #a594fd;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fg-modal__pblock {
  margin-bottom: 16px;
  padding: 16px 20px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid #262626;
  border-radius: 8px;
}
.fg-modal__pblock h4 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: #f1f1ef;
}
.fg-modal__pblock p {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: #adadad;
}
.fg-modal__pblock--warn { border-left: 3px solid #e0a935; }
.fg-modal__pblock--ok { border-left: 3px solid #00ad31; }
.fg-modal__plist {
  margin: 0;
  padding: 0 0 0 2px;
  list-style: none;
}
.fg-modal__plist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 21px;
  color: #adadad;
}
.fg-modal__plist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ad31;
}
.fg-modal__product .fg-modal__foot { justify-content: flex-start; margin-top: 24px; }

/* Секция «Для кого подходит» живёт внутри тёмной панели «Почему Prosper Pay» (Figma 5:1336) */
.fg-why__panel .fg-s6 { margin-top: 80px; }

/* Логотипы партнёров (белые SVG) */
.fg-stats__partners {
  flex-wrap: wrap;
  row-gap: 28px;
  padding-left: 0;
}
.fg-stats__partner-logo {
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex: none;
}

/* Буквенный бейдж источника в карточках СМИ (когда нет логотипа) */
.fg-s11__logo--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: #f1f1ef;
  letter-spacing: 0.02em;
}

/* Карточки СМИ — ссылки: лёгкая подсветка при наведении */
.fg-s11__card { border: 1px solid transparent; transition: border-color 0.2s; }
.fg-s11__card:hover { border-color: #3a3a3a; }

/* Лента партнёров — в одну линию, прокрутка в обратную сторону от клиентов */
.fg-stats__track--partners {
  animation-direction: reverse;
  animation-duration: 45s;
}

/* Партнёры — статичный ряд в одну линию, без анимации.
   Ряд шире контейнера (1266px), поэтому занимает всю ширину экрана,
   а размеры сжимаются через clamp, чтобы всё влезало без обрезки. */
.fg-stats__partners--row {
  flex-wrap: nowrap;
  justify-content: center;
  align-self: center;
  gap: clamp(14px, 2.2vw, 40px);
  width: 100vw;
  max-width: 100vw;
  padding: 0 16px;
  box-sizing: border-box;
}
.fg-stats__partners--row .fg-stats__partner {
  font-size: clamp(16px, 1.6vw, 28px);
  line-height: 1.3;
}
.fg-stats__partners--row .fg-stats__partner-logo {
  height: clamp(20px, 1.9vw, 32px);
}

/* Перетаскивание карусели продуктов мышкой */
.fg-s4__cards {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.fg-s4__cards.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto; /* мгновенный отклик при перетаскивании */
}
.fg-s4__card-img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Отступ между стрелками каруселей и следующей секцией */
.fg-s4 { padding-bottom: 80px; }
.fg-s11 { padding-bottom: 60px; }

/* ===== Футер (единый дизайн, как на подстраницах) ===== */
.fg-footer {
  background: #07080a;
  padding: 72px 52px 32px;
  margin-top: 100px;
}
.fg-footer__inner {
  max-width: 1308px;
  margin: 0 auto;
}
.fg-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1f1f1f;
}
.fg-footer__brand img { display: block; }
.fg-footer__brand p {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 24px;
  color: #adadad;
  max-width: 340px;
}
.fg-footer__col { display: flex; flex-direction: column; gap: 14px; }
.fg-footer__col h5 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #f1f1ef;
}
.fg-footer__col a {
  font-size: 15px;
  line-height: 22px;
  color: #adadad;
}
.fg-footer__col a:hover { color: #ffffff; }
.fg-footer__socials { display: flex; gap: 16px; margin-top: 10px; }
.fg-footer__socials .fg-s12__social { width: 32px; height: 32px; position: relative; display: block; }
.fg-footer__socials .fg-s12__social > img:not(.fg-s12__ig-frame):not(.fg-s12__ig-lens):not(.fg-s12__ig-dot) { width: 100%; height: 100%; }
.fg-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 14px;
  color: #999999;
}
.fg-footer__legal { display: flex; gap: 32px; }
.fg-footer__legal a { color: #adadad; }
.fg-footer__legal a:hover { color: #ffffff; }

/* ===== Обновление навбара (Figma 134:24337): Войти, языковой дропдаун ===== */
.fg-nav__demo {
  padding: 14px 20px;
  font-size: 18px;
}
.fg-nav__login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 46px;
  padding: 14px 10px 14px 20px;
  border-radius: 11.2px;
  background: rgba(106, 61, 195, 0.35);
  border: 1px solid #6a3dc3;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 18px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.fg-nav__login img {
  width: 8px;
  height: 14px;
  margin: 0 8px;
  display: block;
}
.fg-nav__chevron { width: 12px; height: 7px; }
.fg-nav__langwrap { position: relative; }
.fg-nav__langmenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 150px;
  background: #1e1e1e;
  border-radius: 11.2px;
  padding: 12px 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 300;
}
.fg-nav__langmenu.is-open { display: flex; }
.fg-nav__langmenu button {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
  text-align: left;
}
.fg-nav__langmenu button:hover { color: #a594fd; }
.fg-nav__langmenu i {
  font-style: normal;
  font-weight: 200;
  font-size: 12px;
  color: #f1f1ef;
  width: 26px;
}

/* Hero: «Продукты Prosper» — текстовая ссылка со стрелкой (Figma 134:24337) */
.fg-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 18px;
  color: #ffffff;
  white-space: nowrap;
}
.fg-hero__link img { width: 8px; height: 14px; display: block; }
.fg-hero__link:hover { color: #a594fd; }

/* Плашка лицензии НБРК */
.fg-int__cert-strip--amber { background: #e0a935; }

/* ===== Hero-иллюстрация: смена слайдов + парение при наведении (Figma 134:30024) ===== */
.fg-hero__visual {
  position: absolute;
  right: 84px;
  top: 120px;
  width: 800px;
  height: 540px;
  max-width: 46vw;
  pointer-events: auto;
}
.fg-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.fg-hero__slide.is-active { opacity: 1; }
.fg-hero__visual:hover .fg-hero__slide.is-active {
  animation: fg-hero-float 3s ease-in-out infinite;
}
@keyframes fg-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
  .fg-hero__slide { transition: none; }
  .fg-hero__visual:hover .fg-hero__slide.is-active { animation: none; }
}

/* ===== Hero-композиция: центральный экран (моб/веб, смена каждые 3с) + плавающие элементы ===== */
.fg-hero__screens {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  height: 92%;
}
.fg-hero__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.fg-hero__screen.is-active { opacity: 1; }

.fg-hero__float {
  position: absolute;
  animation: fg-hero-float 6s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}
.fg-hero__float--overview { left: -4%;  top: 2%;   width: 26%; animation-delay: 0s; }
.fg-hero__float--card     { left: -9%;  top: 34%;  width: 24%; animation-delay: 1.1s; }
.fg-hero__float--expenses { left: -3%;  bottom: 4%; width: 25%; animation-delay: 2.2s; }
.fg-hero__float--shield   { right: 14%; top: -4%;  width: 13%; animation-delay: 0.6s; }
.fg-hero__float--payment  { right: -6%; top: 16%;  width: 25%; animation-delay: 1.7s; }
.fg-hero__float--team     { right: -9%; top: 42%;  width: 24%; animation-delay: 2.8s; }
.fg-hero__float--doc      { right: 16%; bottom: -2%; width: 12%; animation-delay: 0.3s; }
.fg-hero__float--cubes    { right: -2%; bottom: -8%; width: 20%; animation-delay: 2s; }

@media (prefers-reduced-motion: reduce) {
  .fg-hero__float { animation: none; }
  .fg-hero__screen { transition: none; }
}

/* Hero: текст компактнее и левее, композиция не наезжает */
.fg-hero__title {
  font-size: 52px;
  max-width: 700px;
}
.fg-hero__subtitle {
  font-size: 24px;
  max-width: 620px;
  margin-top: 32px;
}
.fg-hero__content {
  padding-left: 32px;
}
.fg-hero__visual {
  right: 48px;
  width: 740px;
  max-width: 44vw;
}
/* левые плавающие элементы не выходят за границу композиции (не лезут на текст) */
.fg-hero__float--overview { left: 0; }
.fg-hero__float--card     { left: -2%; }
.fg-hero__float--expenses { left: 0; }

/* Меню по центру свободного места между лого и кнопками (не наезжает при широких кнопках) */
.fg-nav__menu {
  position: static;
  transform: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

/* На средних экранах текст и композиция расходятся гарантированно */
@media (max-width: 1500px) {
  .fg-hero__title { font-size: 44px; max-width: 600px; }
  .fg-hero__subtitle { font-size: 20px; max-width: 540px; }
  .fg-hero__visual { max-width: 40vw; right: 24px; }
}

/* Композиция и текст чуть левее: ничего не прилипает к правому краю */
.fg-hero__content { padding-left: 16px; }
.fg-hero__visual { right: 110px; }
.fg-hero__float--payment { right: 0; }
.fg-hero__float--team    { right: -1%; }
.fg-hero__float--cubes   { right: 0; }
@media (max-width: 1500px) {
  .fg-hero__visual { right: 64px; }
}

/* 3D-кубы — вверх по центру композиции (над экраном, левее щита) */
.fg-hero__float--cubes {
  right: auto;
  bottom: auto;
  left: 36%;
  top: -12%;
  width: 19%;
}

/* «Для кого подходит»: фото всегда справа, длинные табы переносятся внутри себя */
.fg-s6__content { flex-wrap: nowrap; }
.fg-s6__tabs { flex: 0 1 auto; min-width: 0; }
.fg-s6__tab-label { white-space: normal; max-width: 360px; }
.fg-s6__tab-label--nowrap { white-space: nowrap; }
.fg-s6__card { flex-shrink: 1; min-width: 0; }

/* Навбар закреплён при прокрутке */
.fg-nav {
  position: sticky;
  top: 0;
}

/* Дизайнерский скроллбар: тонкий, тёмный, фиолетовый при наведении */
* {
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2e2e2e;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #703bf7; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* Кубы и карта поменяны местами */
.fg-hero__float--cubes {
  left: -4%;
  top: 30%;
  width: 20%;
}
.fg-hero__float--card {
  left: 34%;
  top: -14%;
  width: 22%;
}

/* ===== Адаптация навбара: всё уменьшается на малых экранах ===== */
@media (max-width: 1700px) {
  .fg-nav__logo-img { width: 180px; }
  .fg-nav__menu { gap: 26px; }
  .fg-nav__link { font-size: 15px; }
  .fg-nav__actions { gap: 14px; }
  .fg-nav__lang { padding: 10px 14px 10px 12px; }
  .fg-nav__lang-text { font-size: 15px; }
  .fg-nav__demo { padding: 12px 16px; font-size: 15px; }
  .fg-nav__login { height: 40px; padding: 12px 8px 12px 16px; font-size: 15px; }
}
@media (max-width: 1400px) {
  .fg-nav { padding: 20px 16px; }
  .fg-nav__logo-img { width: 148px; }
  .fg-nav__menu { gap: 16px; }
  .fg-nav__link { font-size: 13px; }
  .fg-nav__lang { padding: 8px 10px; }
  .fg-nav__lang-text { font-size: 13px; }
  .fg-nav__lang-icon { width: 18px; height: 18px; }
  .fg-nav__demo { padding: 10px 12px; font-size: 13px; }
  .fg-nav__login { height: 36px; padding: 10px 6px 10px 12px; font-size: 13px; }
  .fg-nav__login img { margin: 0 4px; width: 6px; height: 11px; }
}
@media (max-width: 1100px) {
  .fg-nav__logo-img { width: 126px; }
  .fg-nav__menu { gap: 10px; }
  .fg-nav__link { font-size: 11.5px; }
  .fg-nav__demo, .fg-nav__login { font-size: 11.5px; }
}

/* ===== Адаптация hero на малых экранах ===== */
@media (max-width: 1250px) {
  .fg-hero { height: 640px; }
  .fg-hero__content { padding-top: 80px; }
  .fg-hero__title { font-size: 36px; max-width: 480px; }
  .fg-hero__subtitle { font-size: 17px; max-width: 440px; margin-top: 24px; }
  .fg-hero__visual { max-width: 40vw; right: 16px; top: 90px; height: 440px; }
  .fg-hero__btn { width: auto; padding: 12px 20px; font-size: 15px; }
  .fg-hero__link { font-size: 15px; }
}

/* ===== «С чего начать»: экраны приложения плывут вертикальной лентой ===== */
.fg-s8__phones {
  position: absolute;
  left: 622px;
  top: 0;
  bottom: 0;
  right: 48px;
  display: flex;
  gap: 27px;
  overflow: hidden;
  pointer-events: none;
}
.fg-s8__phones-col {
  display: flex;
  flex-direction: column;
  gap: 35px;
  height: max-content;
  animation: fg-phones-scroll 26s linear infinite;
  will-change: transform;
}
.fg-s8__phones-col--rev {
  animation-direction: reverse;
  animation-delay: -13s;
}
.fg-s8__start:hover .fg-s8__phones-col { animation-play-state: paused; }
@keyframes fg-phones-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.fg-s8__phones .fg-s8__phone {
  position: static;
  flex: none;
}
@media (prefers-reduced-motion: reduce) {
  .fg-s8__phones-col { animation: none; }
}

/* Обложки кейсов уже содержат название бренда — HTML-дубль скрыт */
.fg-s10__brand { display: none; }

/* ===== Кнопки скачивания приложения ===== */
.fg-app-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.fg-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #101010;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  color: #ffffff;
  transition: border-color 0.2s, transform 0.2s;
}
.fg-app-badge:hover {
  border-color: #703bf7;
  transform: translateY(-2px);
}
.fg-app-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.fg-app-badge__text small {
  font-size: 11px;
  color: #adadad;
}
.fg-app-badge__text b {
  font-size: 18px;
  font-weight: 600;
}

/* Футер: участник Astana Hub и AIFC, лицензия НБРК */
.fg-footer__license { margin-top: 24px; }
.fg-footer__license p {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 20px;
  color: #adadad;
  max-width: 340px;
}
.fg-footer__license-title { font-weight: 700; color: #e6e6e4 !important; }
.fg-footer__badges {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.fg-footer__badges img { height: 26px; width: auto; }
.fg-footer__badge-nbrk {
  height: 34px !important;
  background: #f1f1ef;
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
}
