/* ═══════════════════════════════════════════
   STATS SECTION  (design canvas: 1920 × 765)
   ═══════════════════════════════════════════ */

.stats-section {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

.stats-section__inner {
  max-width: 1920px;
  margin: 0 auto;
  /* top: 104px (group y from top), bottom: 765 − 669 = 96px */
  padding: 104px 316px 96px;
}

/* ── 3-column stats grid ───────────────── */

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* ── Cookie banner ─────────────────────── */

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: auto;
  max-width: 1288px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, #000030 0%, #000071 100%);
  border: 3px solid #7c7cd6;
  border-radius: 22px;
  box-sizing: border-box;
  /* height: 180px from Figma */
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 24px);
  /* text x:91 padding = (1288 − 1106) / 2 */
  padding: 40px 91px;
}

/* Show handled by AOS fade (data-aos-duration 340ms in main.js) */
.cookie-banner[data-aos]:not(.aos-animate) {
  pointer-events: none;
}

.cookie-banner.aos-animate {
  pointer-events: auto;
}

.cookie-banner.is-hiding {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(12px) !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
}

/* ═══════════════════════════════════════════
   SMM SECTION  (design canvas: 1920 × 900)
   ═══════════════════════════════════════════ */

.smm-section {
  width: 100%;
  background: #ffffff;
  /* Allow visual to bleed right like hero — no overflow:hidden */
}

.smm-section__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(80px, 10.94vw, 210px) 0 clamp(60px, 5.42vw, 104px) clamp(80px, 16.46vw, 316px);
  display: flex;
  align-items: center;
  gap: 0;
}

/* Left text column — sits on top of the illustration */
.smm-section__content {
  flex: 1 1 350px;
  max-width: 794px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

/* Right visual column — pulled left behind the text, bleeds right */
.smm-section__visual {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  /* Pull up (Figma image y:90 vs section padding-top) */
  margin-top: clamp(-60px, -6.25vw, -120px);
  margin-bottom: clamp(-60px, -5.42vw, -104px);
  /* Pull left so image overlaps with text column right side */
  margin-left: clamp(-80px, -13vw, -250px);
  overflow: visible;
}

/* ═══════════════════════════════════════════
   KEY RESULT SECTION  (same layout as SMM)
   ═══════════════════════════════════════════ */

.key-result {
  width: 100%;
  background: #ffffff;
}

.key-result__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(80px, 10.94vw, 210px) 0 clamp(60px, 5.42vw, 104px) clamp(80px, 16.46vw, 316px);
  padding-top: 80px;
  display: flex;
  align-items: center;
  gap: 0;
}

.key-result__content {
  flex: 1 1 350px;
  max-width: 646px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.key-result__visual {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  margin-top: clamp(-60px, -6.25vw, -120px);
  margin-bottom: clamp(-60px, -5.42vw, -104px);
  margin-left: clamp(-80px, -13vw, -250px);
  overflow: visible;
}

/* ═══════════════════════════════════════════
   GRADIENT ZONE  (products + cta share one gradient)
   ═══════════════════════════════════════════ */

.gradient-zone {
  background: linear-gradient(to bottom, #ffffff, #adc8f9);
}

/* ═══════════════════════════════════════════
   PRODUCTS SECTION  (design canvas: 1920 × 2542)
   ═══════════════════════════════════════════ */

.products-section {
  width: 100%;
  background: transparent;
  overflow: hidden;
}

.products-section__inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  /* title y:104, cards bottom: 372+2076=2448, section h:2542 → bottom: 94px */
  padding: 104px 315px 94px;
}

.products-section__title {
  font-family: var(--font-secondary);
  font-size: 64px;
  font-weight: 700;
  color: #2b2b3a;
  line-height: 1.22;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

#productsSectionTitle {
  scroll-margin-top: 50px;
}

/* Decorative image — top-right of header (Group 116, x:1398, y:86) */
.products-section__decor {
  display: block;
  position: absolute;
  top: 85.86px;
  right: 321px;
  width: 200.55px;
  height: 198.6px;
  pointer-events: none;
}

.products-section__decor img {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
  animation: products-decor-float-spin 2.2s ease-in-out infinite;
}

@keyframes products-decor-float-spin {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(0px) rotate(6deg);
  }

  50% {
    transform: translateY(0) rotate(0deg);
  }

  75% {
    transform: translateY(0px) rotate(-6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-section__decor img {
    animation: none;
  }
}

/* 2-column grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* row-gap:24px, col-gap:20px from Figma */
  gap: 24px 20px;
  /* cards start at y:372, title+gap = 104+156+112 = 372 → margin-top:112 */
  margin-top: 112px;
}

/* Mobile horizontal “pages” — children participate in this grid on desktop */
.products-page {
  display: contents;
}

/* Mobile carousel nav — hidden on desktop */
.products-carousel-nav {
  display: none;
}

/* ═══════════════════════════════════════════
   CTA SECTION  (design canvas: 1920 × 877)
   ═══════════════════════════════════════════ */

.cta-section {
  width: 100%;
  background: transparent;
  overflow: hidden;
}

.cta-section__inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  /* title y:220, section h:877, bottom = 877−(560+97) = 220px */
  padding: 220px 316px 220px;
  min-height: 657px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
}

.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: 630px;
}

.cta-section__title {
  font-family: var(--font-secondary);
  /* Figma: 83.85px */
  font-size: 84px;
  font-weight: 700;
  color: #2b2b3a;
  line-height: 1.22;
}

.cta-section__desc {
  font-family: var(--font-secondary);
  font-size: 33px;
  font-weight: 400;
  color: #2b2b3a;
  line-height: 1.2;
  /* y:369 − (y:220 + title h:102) = 47px */
  margin-top: 47px;
  max-width: 508px;
}

.cta-section__btn {
  display: inline-block;
  /* y:560 − (y:369 + desc h:120) = 71px */
  margin-top: 71px;
  padding: 31px 49px;
  border: none;
  border-radius: 21px;
  background: linear-gradient(135deg, #050516 0%, #0e1855 100%);
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cta-section__btn:hover {
    opacity: 0.88;
    transform: scale(1.04);
  }
}

.cta-section__btn:active {
  opacity: 1;
  transform: scale(1);
}

/* Illustration — absolute, overflows top by 74px */
/* Figma: section 1920px, illustration right edge at x:1830 → 90px from section right */
.cta-section__visual {
  position: absolute;
  right: 90px;
  top: -74px;
  width: 1024px;
  height: 1024px;
  pointer-events: none;
}

.cta-section__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: cta-illustration-float 6.2s ease-in-out infinite;
}

@keyframes cta-illustration-float {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(10px, -14px, 0) rotate(4deg);
  }

  50% {
    transform: translate3d(-12px, -2px, 0) rotate(-3deg);
  }

  75% {
    transform: translate3d(6px, 12px, 0) rotate(2deg);
  }
}

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

/* Ellipse 6 — centered on question mark (image center ~512,512 in 1024×1024) */
.cta-section__visual::before {
  content: '';
  position: absolute;
  left: 262px;
  /* 512 - 400/2 + slight left offset */
  top: 145px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #6de3fd 0%, rgba(174, 201, 250, 0) 100%);
  mix-blend-mode: hard-light;
  filter: blur(40px);
  z-index: 1;
}

/* Ellipse 5 — slightly offset right (hidden ≤1200px in responsive.css) */
.cta-section__visual::after {
  content: '';
  position: absolute;
  left: 352px;
  top: 312px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, #6de3fd 0%, rgba(174, 201, 250, 0) 100%);
  mix-blend-mode: hard-light;
  filter: blur(40px);
  z-index: 1;
}

/* CTA help popup */
.cta-popup {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
}

.cta-popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cta-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 35, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cta-popup.is-open .cta-popup__backdrop {
  opacity: 1;
}

.cta-popup__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 640px);
  padding: 24px 20px;
  box-sizing: border-box;
  overflow: auto;
  background: #ffffff;
  border-radius: 21px;
  box-shadow: 0 24px 64px rgba(5, 5, 22, 0.18);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cta-popup.is-open .cta-popup__panel {
  opacity: 1;
  transform: translateY(0);
}

.cta-popup__img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

.cta-popup__text {
  margin: clamp(16px, 3vw, 24px) 0 0;
  max-width: 36ch;
  font-family: var(--font-secondary);
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.28;
  color: #2b2b3a;
}

.cta-popup__btn {
  margin-top: clamp(20px, 4vw, 28px);
}

.cta-popup .cta-section__btn {
  width: 90%;
  max-width: 100%;
}

/* ═══════════════════════════════════════════
   BENEFITS SECTION  (design canvas: 1920 × 1361)
   ═══════════════════════════════════════════ */

.benefits-section {
  width: 100%;
  background: #adc8f9;
}

.benefits-section__inner {
  max-width: 1920px;
  margin: 0 auto;
  /* title group y:87, list bottom: 432+827=1259, section h:1361 → bottom:102px */
  padding: 87px 316px 102px;
}

.benefits-section__header {
  /* width 971px from Figma */
  max-width: 971px;
}

.benefits-section__title {
  font-family: var(--font-secondary);
  font-size: 64px;
  font-weight: 700;
  color: #2b2b3a;
  line-height: 1.22;
}

.benefits-section__subtitle {
  font-family: var(--font-secondary);
  font-size: 33px;
  font-weight: 500;
  color: #2b2b3a;
  line-height: 1.22;
  /* subtitle y:201, title h:156 → gap 45px */
  margin-top: 45px;
}

.benefits-list {
  list-style: none;
  /* list y:432, header bottom: 87+281=368 → gap 64px */
  margin-top: 64px;
  /* list width 1288px (1920 - 316*2) */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #000030 0%, #000071 100%);
  /* border: 1px solid #cacadd; */
  border-radius: 50px;
  /* Figma padding: 36px top/bottom, 55px left/right */
  padding: 36px 55px;
  gap: 54px;
  transition: transform 0.25s ease;
}

.benefit-item:hover {
  transform: scale(1.03);
}

.benefit-item__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 25px;
  /* Figma: ~68px wide × 71px tall */
  width: 68px;
  height: 71px;
  padding: 0;
  font-family: var(--font-secondary);
  font-size: 58px;
  line-height: 1;
  color: #000035;
}

.benefit-item__badge-icon {
  display: block;
  width: 1em;
  height: 1em;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
}

.benefit-item__text {
  font-family: var(--font-secondary);
  font-size: 33px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
}

.benefit-item__text strong {
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   SUPPORT SECTION  (design canvas: 1920 × 1075)
   ═══════════════════════════════════════════ */

.support-section {
  width: 100%;
  background: #0e1958;
  overflow: hidden;
}

.support-section__inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  /* top: 79px (Frame 75 y), bottom: 1075−897−98=80px, left: 316px */
  padding: 79px 0 80px 316px;
  min-height: 1075px;
  box-sizing: border-box;
}

.support-section__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* ensure text stays above the image layer */
  position: relative;
  z-index: 1;
}

.support-section__title {
  font-family: var(--font-secondary);
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.22;
  /* matches Frame 75 width in Figma → ~3 lines */
  max-width: 1101px;
}

.support-section__text {
  font-family: var(--font-secondary);
  font-size: 33px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.35;
  /* description y:279 − title h:234 = 45px */
  margin-top: 45px;
  max-width: 743px;
}

.support-section__btn {
  display: inline-block;
  /* button y:897 − Frame75 bottom:838 = 59px */
  margin-top: 59px;
  padding: 30px 48px;
  border-radius: 21px;
  background: var(--gradient-accent);
  font-family: var(--font-secondary);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.23;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.support-section__btn:hover {
  opacity: 0.88;
  transform: scale(1.04) !important;
}

.support-section__btn:active {
  opacity: 1;
  transform: scale(1) !important;
}

.support-section__visual {
  /* image positioned absolutely — mirrors Figma where image is sibling of Frame 75 */
  position: absolute;
  right: clamp(30px, 13vw, 234px);
  top: clamp(60px, 19vw, 270px);
  z-index: 0;
}

.support-section__visual img {
  display: block;
  width: 748px;
  height: 748px;
  object-fit: cover;
}

/* ═══════════════════════════════════════════
   TRUSTED SECTION  (design canvas: 1920 × 544)
   ═══════════════════════════════════════════ */

.trusted-section {
  width: 100%;
  background: #0e1958;
  overflow: hidden;
}

.trusted-section__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 100px 0 126.5px;
  box-sizing: border-box;
}

.trusted-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 0 244px 0 316px;
  max-width: 1292.077px;
}

.trusted-section__title {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
}

.trusted-section__controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.trusted-section__arrow {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 71.934px;
  height: 84.277px;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 9.488px;
  background: #202d75;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.trusted-section__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 48px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transform: translate(-50%, -50%);
}

.trusted-section__arrow--prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 48' fill='none'%3E%3Cpath d='M24 4 4 24l20 20' stroke='%23ffffff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.trusted-section__arrow--next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 48' fill='none'%3E%3Cpath d='M4 4 24 24 4 44' stroke='%23ffffff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.trusted-section__arrow:hover {
  background: #2a398f;
  box-shadow: 0 12px 24px rgba(8, 14, 55, 0.3);
  transform: translateY(-2px);
}

.trusted-section__arrow:active {
  background: #202d75;
  box-shadow: none;
  transform: translateY(0);
}

.trusted-section__viewport {
  width: 100%;
  margin-top: 53px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.trusted-section__viewport::-webkit-scrollbar {
  display: none;
  height: 0;
}

.trusted-section__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.trusted-section__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 0 316px 0 316px;
  list-style: none;
  box-sizing: border-box;
}

.trusted-card {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 186.515px;
  padding-top: 21.13px;
  padding-bottom: 21.13px;
  border-radius: 26.412px;
  background: #ffffff;
}

.trusted-card--ntv,
.trusted-card--vk {
  flex: 0 0 364px;
}

.trusted-card--sber21 {
  flex: 0 0 369px;
}

.trusted-card--orsk,
.trusted-card--sbermobile,
.trusted-card--readovka,
.trusted-card--e1 {
  flex: 0 0 519px;
}

.trusted-card--ntv,
.trusted-card--sber21,
.trusted-card--vk {
  padding-left: 88px;
  padding-right: 88px;
}

.trusted-card--orsk,
.trusted-card--sbermobile,
.trusted-card--readovka,
.trusted-card--e1 {
  padding-left: 74px;
  padding-right: 74px;
}

.trusted-card__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.trusted-card__logo--ntv,
.trusted-card__logo--vk {
  max-width: 188px;
}

.trusted-card__logo--sber21 {
  max-width: 193px;
}

.trusted-card__logo--orsk,
.trusted-card__logo--sbermobile,
.trusted-card__logo--readovka,
.trusted-card__logo--e1 {
  max-width: 371.077px;
}

/* ═══════════════════════════════════════════
   FOUNDER SECTION  (design canvas: 1920 × 800)
   ═══════════════════════════════════════════ */

.founder-section {
  width: 100%;
  background: #0e1958;
  overflow: hidden;
}

.founder-section__inner {
  position: relative;
  max-width: 1920px;
  min-height: 800px;
  margin: 0 auto;
  padding: 109px 268px 0 316px;
  box-sizing: border-box;
}

.founder-section__content {
  position: relative;
  z-index: 1;
  max-width: 735px;
}

.founder-section__intro {
  display: grid;
  grid-template-columns: 392px 2px 263px;
  align-items: center;
  column-gap: 42.5px;
}

.founder-section__title {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
}

.founder-section__divider {
  display: block;
  width: 2px;
  height: 137.5px;
  margin-top: 1px;
  background: rgba(255, 255, 255, 0.94);
}

.founder-section__role {
  /* margin: 27px 0 0; */
  font-family: var(--font-secondary);
  font-size: 23.953px;
  font-weight: 400;
  line-height: 1.34;
  color: rgba(213, 219, 255, 1);
}

.founder-section__text {
  margin: 50px 0 0;
  font-family: var(--font-secondary);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.36;
  color: #ffffff;
}

.founder-section__visual {
  position: absolute;
  top: 64.674px;
  right: 267.603px;
  width: 628.422px;
  height: 761.326px;
  pointer-events: none;
}

.founder-section__glow {
  position: absolute;
  top: 72px;
  left: -64.459px;
  width: 338.694px;
  height: 338.694px;
  border-radius: 78.401px;
  background: linear-gradient(to bottom right, rgba(245, 239, 102, 0.95) 0%, rgba(31, 199, 163, 0.92) 48%, rgba(28, 131, 224, 0.86) 100%);
  filter: blur(64px);
  opacity: 0.92;
}

.founder-section__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 628.422px;
  height: 761.326px;
  object-fit: contain;
}

/* Figma Rectangle 9: 606×299 at photo bottom — transparent → #0E1958 */
.founder-section__photo-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 39.27%;
  /* 299 / 761.326 */
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 25, 88, 0) 0%, #0e1958 95%, #0e1958 100%);
}

/* ═══════════════════════════════════════════
   REVIEWS SECTION  (design canvas: 1920 × 800)
   ═══════════════════════════════════════════ */

.reviews-section {
  width: 100%;
  background: #0e1958;
  overflow: hidden;
}

.reviews-section__inner {
  max-width: 1920px;
  min-height: 800px;
  margin: 0 auto;
  padding: 100px 0 148.058px;
  box-sizing: border-box;
}

.reviews-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 244px 0 316px;
  max-width: 1292.077px;
}

.reviews-section__title {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
}

.reviews-section__controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.reviews-section__arrow,
.reviews-section__footer-arrow {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
  border: 0;
  background: #202d75;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.reviews-section__arrow {
  width: 71.934px;
  height: 84.277px;
  border-radius: 9.488px;
}

.reviews-section__footer-arrow {
  width: 50.491px;
  height: 59.155px;
  border-radius: 6.66px;
}

.reviews-section__arrow::before,
.reviews-section__footer-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transform: translate(-50%, -50%);
}

.reviews-section__arrow::before {
  width: 28px;
  height: 48px;
}

.reviews-section__footer-arrow::before {
  width: 20px;
  height: 34px;
}

.reviews-section__arrow--prev::before,
.reviews-section__footer-arrow--prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 48' fill='none'%3E%3Cpath d='M24 4 4 24l20 20' stroke='%23ffffff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.reviews-section__arrow--next::before,
.reviews-section__footer-arrow--next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 48' fill='none'%3E%3Cpath d='M4 4 24 24 4 44' stroke='%23ffffff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.reviews-section__arrow:hover,
.reviews-section__footer-arrow:hover {
  background: #2a398f;
  box-shadow: 0 12px 24px rgba(8, 14, 55, 0.3);
  transform: translateY(-2px);
}

.reviews-section__arrow:active,
.reviews-section__footer-arrow:active {
  background: #202d75;
  box-shadow: none;
  transform: translateY(0);
}

.reviews-section__viewport {
  margin-top: 53px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.reviews-section__viewport::-webkit-scrollbar {
  display: none;
  height: 0;
}

.reviews-section__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.reviews-section__track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 0;
  padding-left: 316px;
  padding-right: 316px;
  list-style: none;
  box-sizing: border-box;
}

.reviews-page {
  display: contents;
  list-style: none;
}

.review-card {
  flex: 0 0 698px;
  padding: 40px;
  border-radius: 50px;
  background: #ffffff;
  box-sizing: border-box;
}

.review-card__author {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.review-card__avatar {
  position: relative;
  display: block;
  width: 76.686px;
  height: 75.942px;
  border-radius: 23.306px;
  background: center / cover no-repeat url("../assets/images/review_logo.svg");
  flex: 0 0 auto;
}

.review-card__author-text {
  padding-top: 8.971px;
}

.review-card__name,
.review-card__role,
.review-card__text {
  margin: 0;
  color: #2b2b3a;
}

.review-card__name {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.22;
}

.review-card__role {
  margin-top: -2px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.review-card__text {
  margin-top: 33px;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.review-card--hidden {
  display: none;
}

.reviews-section__footer {
  display: none;
}

.reviews-section__footer-label {
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

/* ═══════════════════════════════════════════
   FAQ SECTION  (design canvas: 1920 × 1044)
   ═══════════════════════════════════════════ */

.faq-section {
  width: 100%;
  background: #0e1958;
  overflow: hidden;
}

.faq-section__inner {
  max-width: 1920px;
  min-height: 1044px;
  margin: 0 auto;
  padding: 100px 316px 100px;
  box-sizing: border-box;
}

.faq-section__title {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
}

.faq-section__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 1288.259px;
  margin: 37px 0 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  min-height: 140px;
  padding: 36px 55px;
  border: 1px solid #467abd;
  border-radius: 50px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.1);
  }

  .faq-item__toggle:hover {
    background: #467abd;
    color: #ffffff;
    border-color: #6ba0de;
    transform: translateY(-1px);
  }
}

.faq-item__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.faq-item.is-open {
  background: rgba(20, 33, 103, 0.36);
  border-color: #6ba0de;
}

.faq-item__question {
  margin: 0;
  max-width: 1056px;
  font-family: var(--font-secondary);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
}

.faq-item__toggle {
  display: grid;
  place-items: center;
  width: 68.259px;
  height: 71px;
  padding: 0;
  border: 1px solid #467abd;
  border-radius: 25.185px;
  background: #ffffff;
  font-family: var(--font-secondary);
  font-size: 57.778px;
  line-height: 1;
  color: #467abd;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  flex: 0 0 auto;
  vertical-align: middle;
  -webkit-font-smoothing: subpixel-antialiased;
}

.faq-item__toggle-icon {
  display: block;
  width: 1em;
  height: 1em;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
}

.faq-item__toggle:active {
  transform: translateY(0);
}

.faq-item.is-open .faq-item__toggle {
  background: #467abd;
  color: #ffffff;
  border-color: #6ba0de;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.faq-item.is-open .faq-item__answer {
  /* max-height is set inline in JS from scrollHeight so long answers are not clipped */
  margin-top: 22px;
  opacity: 1;
}

.faq-item__answer-text {
  margin: 0;
  max-width: 972px;
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.99);
}

/* ═══════════════════════════════════════════
   SOCIAL SECTION  (design canvas: 1920 × 950)
   ═══════════════════════════════════════════ */

.social-section {
  width: 100%;
  background: #18186f;
  overflow: hidden;
}

.social-section__inner {
  position: relative;
  max-width: 1920px;
  min-height: 950px;
  margin: 0 auto;
  padding: 129px 316px 117px;
  box-sizing: border-box;
  background: url("../assets/images/social-section-bg.webp") center center / cover no-repeat;
}

.social-section__content {
  position: relative;
  z-index: 1;
  max-width: 634px;
}

.social-section__title {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 67.804px;
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
}

.social-section__subtitle {
  margin: 45px 0 0;
  max-width: 545px;
  font-family: var(--font-secondary);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.21;
  color: #ffffff;
}

.social-section__buttons {
  display: grid;
  grid-template-columns: repeat(2, 307px);
  gap: 18px 20px;
  width: 634px;
  max-width: 100%;
  margin-top: 66px;
}

.social-section__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 97.166px;
  padding: 0 18px;
  border-radius: 20.852px;
  box-sizing: border-box;
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.social-section__button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(4, 8, 46, 0.24);
}

.social-section__button:active {
  opacity: 1;
  transform: translateY(0);
  box-shadow: none;
}

.social-section__button--vk {
  background: #4460ff;
}

.social-section__button--max {
  background: #8955f9;
}

.social-section__button--zen {
  background: #0b0b1d;
}

.social-section__button--telegram {
  background: #5f9bff;
}

.social-section__visual {
  position: absolute;
  top: 97.99px;
  right: 290.79px;
  width: 672.789px;
  height: 694.818px;
  pointer-events: none;
}

.social-section__visual-spark,
.social-section__visual-telegram {
  position: absolute;
  display: block;
  height: auto;
  transform-origin: center center;
  animation: social-visual-deco-spin 4s ease-in-out infinite;
}

.social-section__visual-main-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform-origin: center center;
  animation: social-visual-main-rotate 10s ease-in-out infinite;
}

.social-section__visual-main {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  animation: social-visual-main-zoom 4s ease-in-out infinite;
}

.social-section__visual-spark {
  left: 9.33%;
  top: 61.89%;
  width: 20.39%;
}

.social-section__visual-telegram {
  left: 61.2%;
  top: 8.15%;
  width: 30.96%;
  animation-delay: -2s;
}

@keyframes social-visual-main-zoom {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.045);
  }
}

@keyframes social-visual-main-rotate {

  0%,
  100% {
    transform: rotate(0deg);
  }

  33.333% {
    transform: rotate(10deg);
  }

  66.666% {
    transform: rotate(-10deg);
  }
}

@keyframes social-visual-deco-spin {

  0%,
  100% {
    transform: rotate(0deg);
  }

  33.333% {
    transform: rotate(15deg);
  }

  66.666% {
    transform: rotate(-15deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .social-section__visual-main-wrap,
  .social-section__visual-main,
  .social-section__visual-spark,
  .social-section__visual-telegram {
    animation: none;
  }
}

/* ═══════════════════════════════════════════
   FOOTER  (design canvas: 1920 × 700)
   ═══════════════════════════════════════════ */

.site-footer {
  width: 100%;
  background: #000030;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 427px 632px;
  column-gap: 229px;
  max-width: 1920px;
  min-height: 700px;
  margin: 0 auto;
  padding: 92px 315px 134px;
  box-sizing: border-box;
}

.site-footer__brand {
  max-width: 427px;
}

.site-footer__logo {
  gap: 28px;
}

.site-footer__logo .logo__icon {
  width: 96.752px;
  height: 95.813px;
  border-radius: 29.188px;
}

.site-footer__logo .logo__name {
  font-size: 57.147px;
  line-height: 1.2;
}

.site-footer__text {
  margin: 53px 0 0;
  max-width: 427px;
  font-family: var(--font-secondary);
  font-size: 32.633px;
  font-weight: 700;
  line-height: 1.23;
  color: #ffffff;
}

.site-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 307px;
  min-height: 97.166px;
  margin-top: 68px;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
  font-size: var(--fs-btn);
  line-height: 1.2;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
}

.site-footer__btn:hover {
  box-shadow: 0 24px 40px rgba(4, 8, 46, 0.24);
}

.site-footer__btn:active {
  box-shadow: none;
}

.site-footer__meta {
  display: grid;
  grid-template-columns: minmax(0, 342px) 266px;
  column-gap: 24px;
  row-gap: 50px;
  align-content: start;
  margin-top: 38px;
}

.site-footer__company,
.site-footer__copyright,
.site-footer__meta-link {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.21;
  color: #4f5a93;
}

.site-footer__company {
  grid-column: 1 / -1;
  max-width: 436px;
}

.site-footer__meta-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: opacity 0.2s ease;
}

.site-footer__meta-link:hover {
  opacity: 0.78;
}

.site-footer__meta-link--dev {
  grid-column: 1 / 2;
  max-width: 342px;
}

.site-footer__meta-link--policy {
  grid-column: 2 / 3;
  max-width: 266px;
}

.site-footer__meta-link--design {
  grid-column: 1 / 2;
  max-width: 279px;
}

.site-footer__meta-link--offer {
  grid-column: 2 / 3;
  max-width: 266px;
}

.site-footer__copyright {
  grid-column: 1 / 2;
}

/* ═══════════════════════════════════════════
   HERO SECTION  (design canvas: 1920 × 995)
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--clr-bg-dark);
}

/* ── Background image ───────────────────── */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/images/bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ── Inner wrapper (max 1920px, design margins) ── */

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* left: 316px | right: 174px  — from Figma */
  padding-left: 316px;
  padding-right: 174px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

/* ── Header inside hero ─────────────────── */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* top: 56px — logo y-position from Figma */
  padding-top: clamp(24px, 5.6dvh, 56px);
  /* Nav right edge sits at x:1603 in a 1920px frame.
     Inner right padding is 174px → gap to nav = (1920−1603) − 174 = 143px */
  padding-right: 143px;
  position: relative;
  z-index: 10;
}

/* ── Hero body: text column + visual ───── */

.hero__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  gap: clamp(32px, 4vw, 80px);
  /* Header block: padding-top 56px + logo height ~64px ≈ 120px from top.
     Content starts at y:243. Gap = 243 − 120 = 123px */
  margin-top: clamp(28px, 6dvh, 123px);
}

/* Left text column (width from Figma: 509px) */
.hero__content {
  flex: 0 0 509px;
  max-width: 509px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.hero__title {
  font-family: var(--font-secondary);
  font-size: clamp(48px, min(var(--fs-hero-title), 11dvh), 84px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--clr-white);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
}

.hero__subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(20px, min(var(--fs-hero-subtitle), 4.5dvh), 33px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--clr-white);
  /* Subtitle y in Figma: 487. Title y: 243. Title height: 204px. Gap ≈ 40px */
  margin-top: clamp(18px, 3.5dvh, 40px);
}

/* Button spacing: btn y:720, content end y:607, gap = 113px */
.hero__content .btn {
  align-self: flex-start;
  margin-top: clamp(32px, 6dvh, 113px);
}

/* Hero CTA: AOS keeps inline transform after fade-up — use !important so hover matches .cta-section__btn */
.hero__content .btn.btn--gradient {
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .hero__content .btn.btn--gradient:hover {
    opacity: 0.88 !important;
    transform: translate3d(0, 0, 0) scale(1.04) !important;
  }
}

.hero__content .btn.btn--gradient:active {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Right visual column */
.hero__visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  transform: translateY(clamp(-96px, -9dvh, -32px));
  position: relative;
  z-index: 1;
}

.hero__visual-aos {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 100%;
}

.hero__visual img {
  width: 941px;
  max-width: 100%;
  /* max-height: min(941px, calc(100dvh - clamp(170px, 22dvh, 240px))); */
  height: auto;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: hero-visual-float 7.6s ease-in-out infinite;
}

@keyframes hero-visual-float {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate3d(2px, 0, 0) rotate(1.75deg) scale(1.011);
  }

  50% {
    transform: translate3d(-9px, 0, 0) rotate(-1.4deg) scale(1.007);
  }

  75% {
    transform: translate3d(1px, 0, 0) rotate(1.05deg) scale(1.014);
  }
}

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