.wgt-home-modules {
  padding-top: 48px;
  padding-bottom: 66px;
}

.wgt-home-modules .home-inner {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

/* ===== Stats row ===== */

.wgt-home-modules .home-modules-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 80px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wgt-home-modules .home-modules-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wgt-home-modules .stat-number {
  color: var(--home-title);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.25;
}

.wgt-home-modules .stat-label {
  color: var(--home-subtitle);
  font-size: 16px;
  line-height: 1.4;
}

/* ===== Sticky nav + cards ===== */

.wgt-home-modules .home-modules-body {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.wgt-home-modules .home-modules-nav {
  position: sticky;
  top: 120px;
}

.wgt-home-modules .home-modules-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wgt-home-modules .home-modules-nav a {
  display: inline-flex;
  padding: 8px;
  border-radius: 8px;
  color: var(--home-subtitle);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wgt-home-modules .home-modules-nav a:hover {
  color: var(--home-title);
}

.wgt-home-modules .home-modules-nav a.is-active {
  background: #f5f3ff;
  color: var(--primary-color-1);
  font-weight: 500;
}

.wgt-home-modules .home-modules-list {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.wgt-home-modules .home-module-card {
  display: grid;
  grid-template-columns: minmax(0, 486px) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  min-height: 416px;
  padding: 24px;
  scroll-margin-top: 140px;
  border: 1px solid var(--home-surface-border, #ececec);
  border-radius: 12px;
  background: var(--home-surface, #f8f8f8);
}

.wgt-home-modules .home-module-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 368px;
  padding: 24px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3efff 0%, #faf8ff 60%, #fff 100%);
}

.wgt-home-modules .home-module-media img,
.wgt-home-modules .home-module-media-img {
  display: block;
  width: 100%;
  max-width: 406px;
  height: 100%;
  max-height: 262px;
  object-fit: contain;
  border-radius: 8px;
}

.wgt-home-modules .home-module-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding-right: 16px;
}

.wgt-home-modules .home-module-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  object-fit: contain;
}

.wgt-home-modules .home-module-info h3 {
  margin: 0;
  color: var(--home-title);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.wgt-home-modules .home-module-description,
.wgt-home-modules .home-module-description p {
  margin: 0;
  color: var(--home-subtitle);
  font-size: 15px;
  line-height: 1.6;
}

.wgt-home-modules .home-module-info .home-link {
  margin-top: 12px;
}

@media (max-width: 1200px) {
  .wgt-home-modules .home-module-card {
    gap: 32px;
  }
}

@media (max-width: 992px) {
  .wgt-home-modules .home-modules-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .wgt-home-modules .home-modules-nav {
    position: static;
    overflow-x: auto;
  }

  .wgt-home-modules .home-modules-nav ul {
    flex-wrap: nowrap;
  }

  .wgt-home-modules .home-modules-nav a {
    white-space: nowrap;
  }

  .wgt-home-modules .home-module-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
    padding: 20px;
  }

  .wgt-home-modules .home-module-media {
    height: 280px;
    padding: 16px;
  }

  .wgt-home-modules .home-module-info {
    padding-right: 0;
  }

  .wgt-home-modules .stat-number {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .wgt-home-modules .home-modules-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .wgt-home-modules .stat-number {
    font-size: 26px;
  }

  .wgt-home-modules .stat-label {
    font-size: 12px;
  }

  .wgt-home-modules .home-module-card {
    padding: 16px;
    gap: 16px;
  }

  .wgt-home-modules .home-module-media {
    height: 220px;
    padding: 12px;
  }

  .wgt-home-modules .home-module-media img,
  .wgt-home-modules .home-module-media-img {
    max-height: 196px;
  }

  .wgt-home-modules .home-module-icon {
    width: 36px;
    height: 36px;
  }

  .wgt-home-modules .home-module-info h3 {
    font-size: 20px;
  }
}
