
/* Үлкен экрандар үшін */
body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Мобилке бейімдеу */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }
  /* қажет болғанда блоктарды бір бағанға ауыстыру, мәтіндерді кішірейту және т.б. */
}




/* HOW IT WORKS */
.how-it-works {
  padding: 80px 0;
  background-color: #ffffff;
}
.how-it-works__title {
  font-size: 2rem;
  color: #1D3A8A;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
}
.how-it-works__subtitle {
  font-size: 1rem;
  color: #6B7280;
  text-align: center;
  margin-bottom: 40px;
}

/* STEPS CONTAINER */
.how-it-works__steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
/* connecting line */
.how-it-works__steps::before {
  content: "";
  position: absolute;
  top: 32px;   /* half of circle height */
  left: 0;
  right: 0;
  height: 1px;
  background-color: #E5E7EB;
  z-index: 0;
}

/* SINGLE STEP */
.step {
  flex: 1;
  max-width: 140px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step__circle {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 1px solid #E5E7EB;
}
.step__title {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #22356F;
}
.step__desc {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #6B7280;
}

/* STEP NUMBERS COLORS */
.step__number--1 { color: #8A3FFC; }  /* фиолет */
.step__number--2 { color: #FF7EB6; }  /* розовый */
.step__number--3 { color: #F5A623; }  /* желтый */
.step__number--4 { color: #34D399; }  /* зеленый */
.step__number--5 { color: #FBBD23; }  /* оранжевый */
.step__number--6 { color: #3B82F6; }  /* синий */
.step__number--7 { color: #A78BFA; }  /* сиреневый */

/* RESPONSIVE */
@media (max-width: 1024px) {
  .how-it-works__steps { gap: 8px; }
  .step { max-width: 100px; }
  .step__circle { width: 56px; height: 56px; font-size: 1.25rem; }
}
@media (max-width: 768px) {
  .how-it-works__steps {
    flex-wrap: wrap;
    justify-content: center;
  }
  .step {
    flex: 0 1 45%;
    margin-bottom: 32px;
  }
}


@media (max-width: 480px) {
  .how-it-works__steps {
    flex-direction: column;      /* Выстраиваем шаги сверху вниз */
    align-items: center;         /* Можно центрировать по ширине */
    gap: 24px;                   /* Расстояние между шагами */
    padding: 0 16px;             /* Отступ по бокам */
  }
  .how-it-works__steps .step {
    flex: 0 0 auto;              /* Не растягивать по высоте */
    width: 100%;                 /* Каждый шаг на всю ширину */
    max-width: 360px;            /* Или ваш максимальный размер */
    box-sizing: border-box;
  }
  /* Если нужно чуть уменьшить шрифт описания */
  .how-it-works__steps .step__desc {
    font-size: 14px;
    line-height: 1.4;
  }
}



/* -----------------------------
   AGENT PREP SECTION
   ----------------------------- */
.agent-prep {
  background-color: #FEFCF3;
  padding: 80px 0;
}
.agent-prep__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1D3A8A;
  text-align: center;
  margin-bottom: 8px;
}
.agent-prep__subtitle {
  font-size: 1rem;
  color: #6B7280;
  text-align: center;
  margin-bottom: 40px;
}

/* Grid layout */
.agent-prep__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Card base */
.agent-prep__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
}

/* Wide card spans full width */
.agent-prep__card--wide {
  grid-column: 1 / -1;
}

/* Icon */
.agent-prep__icon-wrap {
  width: 48px;
  height: 48px;
  background-color: #F3F4F6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.agent-prep__icon-wrap--wide {
  background-color: #E5E7EB;
}
.agent-prep__icon {
  width: 32px;
  height: 32px;
}

/* Title & text */
.agent-prep__card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #22356F;
  margin-bottom: 8px;
}
.agent-prep__card-text {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.5;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .agent-prep {
    padding: 60px 0;
  }
  .agent-prep__title {
    font-size: 1.75rem;
  }
  .agent-prep__subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .agent-prep__grid {
    gap: 16px;
  }
}
