/* ==========================
   Sekcja: Statystyki na stronie głównej
   ========================== */

/* Tło na całą szerokość ekranu (sztuczka z przeniesieniem 100vw na główną sekcję) */
.hp-stats-section {
  position: relative;
  padding: 90px 20px;
  overflow: hidden;
  background-color: #111418;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}

.hp-stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(129, 212, 235, 0.08) 0%, transparent 23%),
    radial-gradient(circle at 80% 70%, rgba(255, 221, 68, 0.08) 0%, transparent 24%),
    linear-gradient(to bottom, #111418, #0a0c0f);
  z-index: 0;
}

.hp-stats-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"),
    linear-gradient(120deg, rgba(129, 212, 235, 0.05) 0%, transparent 50%, rgba(255, 221, 68, 0.05) 100%);
  z-index: 0;
  pointer-events: none;
}

.hp-stats-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* Usunięto 100vw stąd */
  padding: 60px 40px 120px;
  position: relative;
  z-index: 1; /* Dodane, aby statystyki były nad gradientami tła */
}

.hp-stat-block {
  position: relative;
  width: 100%;
  text-align: center;
  /* Całkowicie usunięte max-width: 1200px zgodnie z prośbą */
}

.hp-stat-hover {
  transition: transform 0.3s ease;
}

.hp-stat-hover:hover {
  transform: translateY(-4px);
}

.hp-stat-number {
  font-family: 'SG' !important;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 650;
  font-display: swap !important;
  background: linear-gradient(120deg,
    #81d4eb 0%,
    #81d4eb 27%,
    #ffffff 40%,
    #ffdd44 70%,
    #ffffff 100%);
  -webkit-background-clip: text;
  color: transparent;
  margin: 0 0 12px 0 !important; /* Zmniejszono z 15px na 4px */
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.hp-stat-number.animated {
  opacity: 1;
  transform: translateY(0);
}

.hp-stat-text {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  font-display: swap !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important; /* Zmniejszono też wysokość linii dla lepszego zbitka */
  color: white !important;
  margin-top: 5px !important; /* Zmniejszono z 12px na 0 */
  margin-bottom: 0 !important;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hp-stats-layout {
    flex-direction: row;
    justify-content: space-between; /* Wymusza równe rozłożenie od krawędzi do krawędzi */
    gap: 0;
    padding: 30px 30px;
  }

  .hp-stat-block {
    flex: 1; /* Zmienione z 0.8 na 1, żeby równo wypełniały przestrzeń */
    padding: 0 30px;
  }

  .hp-center-block {
    flex: 1; /* Zmienione z 0.8 na 1 */
  }

  /* Linie separatorów w wersji desktop */
  .hp-left-block::after,
  .hp-center-block::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 170px;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
  }

  .hp-center-block::after {
    right: -1px;
  }
}

@media (max-width: 767px) {
  .hp-stats-layout {
    flex-direction: column;
    padding: 0px 0px;
    gap: 0;
  }
  .hp-stats-section {
    padding: 20px 20px;
  }

  .hp-stat-block {
    padding: 55px 0;
  }

  /* Linie separatorów w wersji mobilnej */
  .hp-stat-block:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
  }
}
/* ikony */
.hp-stat-icon {
  margin-top: 10px;
  opacity: 0.91;
}
@media (max-width: 767px) {
  .hp-stat-icon {
    transform: scale(0.9);
    transform-origin: center;
    margin-top: 7px;
  }
}
/* ==========================
   Sekcja: Statystyki na stronie głównej
   ========================== */

  .referral-section{
    background: linear-gradient(90deg,#0e1418,#121c22);
    padding: 90px 100px;
}

.referral-container{
  max-width:1300px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}

.referral-left{
  max-width:550px;
}

.referral-badge{
  font-family: 'Ubuntu' !important;
  font-weight: 600;
  font-display: swap !important;
  display:inline-block;
  border:1px solid #c7aa2c;
  background: linear-gradient(120deg,
    #f0f07a 0%,
    #b89d25 50%,
    #f0f07a 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  padding:6px 14px;
  border-radius:20px;
  font-size:14px;
  margin-bottom:20px;
}

.referral-title{
  font-size:56px;
  line-height:1.1;
  margin-bottom:20px;
}

.referral-title span{
  font-family: 'SG' !important;
  font-weight: 300;
  font-display: swap !important;
  background: linear-gradient(120deg,
    #f0f07a 0%,
    #fab1f5 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.referral-desc{
  font-size:20px;
  margin-bottom:30px;
}

.referral-btn{
  cursor: pointer;
  display:inline-block;
  background: #b89d25;
  color: #ffffff;
  padding:9px 26px;
  border-radius:14px;
  border: none;
  font-weight: 550;
  font-family: 'Ubuntu' !important;
  font-display: swap !important;
  font-size: 16px;
  text-decoration:none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.referral-btn:hover{
  transform:translateY(-2px);
  box-shadow: 0 8px 20px rgba(185, 185, 185, 0.25);
}

.referral-right{
  width:300px;
}

.referral-icon{
  width:100%;
  stroke:#f2d23b;
  fill:none;
  stroke-width:3;
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon{
  0%{transform:translateY(0px)}
  50%{transform:translateY(-8px)}
  100%{transform:translateY(0px)}
}

@media(max-width:900px){

.referral-container{
  flex-direction:column;
  text-align:center;
  width: 100%;
}

.referral-title{
  font-size:36px;
}

.referral-right{
  width:200px;
}
.referral-left {
  max-width: 320px;
  min-width: 300px;
}

}