
.ione-why,
.ione-why *,
.ione-why *::before,
.ione-why *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ione-why {
  --ion-navy-950: #0f1e2e;
  --ion-navy-800: #182d43;
  --ion-navy-700: #1e3552;
  --ion-amber-700: #7a4014;
  --ion-amber-500: #e6a23c;
  --ion-amber-300: #f4c77a;
  --ion-white: #ffffff;
  --ion-sun-cream: #fbefdd;
  --ion-cream: #faf6ef;
  --ion-warm-panel: #f3ece0;
  --ion-text-strong: #182d43;
  --ion-text-body: #2c3540;
  --ion-text-muted: #66707c;
  --ion-border-warm: #e4dbcd;

  font-family: "Barlow Semi Condensed", "Prompt", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  position: relative;
  overflow: hidden;
  padding: 78px 24px 86px;
  color: var(--ion-text-body);
  background-color: #faf6ef;
}

.ione-why::before,
.ione-why::after {
  content: none;
  display: none;
  background: none;
}

.ione-why__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.ione-why__header {
  text-align: center;
  margin-bottom: 52px;
}

.ione-why__h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 700;
  color: var(--ion-text-strong);
  line-height: 1.55;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.ione-why__rule {
  width: 92px;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ion-amber-500), var(--ion-amber-300), transparent);
  box-shadow: none;
}

/* Desktop base: 3 cards on the first row + 2 centered on the second row */
.ione-why__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ione-why__card {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 34px 28px 32px;
  border-radius: 24px;
  background: var(--ion-white);
  border: 1px solid var(--ion-border-warm);
  box-shadow: 0 14px 34px rgba(15, 30, 46, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.ione-why__card:nth-child(4) {
  grid-column: 2 / span 2;
}

.ione-why__card:nth-child(5) {
  grid-column: 4 / span 2;
}

.ione-why__card:hover {
  transform: translateY(-5px);
  border-color: var(--ion-amber-300);
  background: var(--ion-sun-cream);
  box-shadow: 0 18px 40px rgba(15, 30, 46, 0.11);
}

.ione-why__shine {
  position: absolute;
  top: 0;
  left: 18%;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 162, 60, 0.72), transparent);
  pointer-events: none;
}

.ione-why__title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.ione-why__icon {
  display: block;
  width: 30px;
  height: 30px;
  min-width: 30px;
  flex: 0 0 30px;
  color: var(--ion-amber-700);
  margin-top: 2px;
  filter: none;
}

.ione-why__card-title {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 700;
  color: var(--ion-text-strong);
  line-height: 1.55;
  margin: 0;
}

.ione-why__card-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ion-text-body);
  line-height: 1.85;
}

/* Tablet: 2 columns — card 5 remains centered */
@media (min-width: 621px) and (max-width: 1024px) {
  .ione-why {
    padding: 66px 22px 74px;
  }

  .ione-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .ione-why__card,
  .ione-why__card:nth-child(4),
  .ione-why__card:nth-child(5) {
    grid-column: auto;
  }

  .ione-why__card {
    min-height: 260px;
    padding: 32px 24px;
  }

  .ione-why__card:nth-child(5) {
    grid-column: 1 / -1;
    width: calc((100% - 18px) / 2);
    justify-self: center;
  }

  .ione-why__title-row {
    gap: 11px;
  }

  .ione-why__icon {
    width: 29px;
    height: 29px;
    min-width: 29px;
    flex-basis: 29px;
  }
}

/* Mobile: one full-width card per row */
@media (max-width: 620px) {
  .ione-why {
    padding: 56px 18px 62px;
  }

  .ione-why__header {
    margin-bottom: 38px;
  }

  .ione-why__h2 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .ione-why__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ione-why__card,
  .ione-why__card:nth-child(4),
  .ione-why__card:nth-child(5) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }

  .ione-why__card {
    min-height: auto;
    border-radius: 20px;
    padding: 30px 22px;
  }

  .ione-why__title-row {
    gap: 10px;
    margin-bottom: 12px;
  }

  .ione-why__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex-basis: 28px;
    margin-top: 2px;
  }

  .ione-why__card-desc {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ione-why__card {
    transition: none;
  }

  .ione-why__card:hover {
    transform: none;
  }
}
