/* --- Why us (image + list) --- */
.sl-why{
  padding-top: 0;
  padding-bottom: var(--sl-section-y-loose);
  background: var(--sl-bg-light);
}

.sl-why__grid{
  display: grid;
  grid-template-columns: minmax(0, var(--sl-col-main-left)) minmax(0, var(--sl-col-main-right));
  gap: var(--sl-grid-gap);

  /* важно: НЕ растягиваем по высоте от картинки */
  align-items: start;
}

.sl-why__content{
  background: var(--sl-bg-light-2);
  border: 1px solid rgba(18,21,33,.07);
  border-radius: 20px;
  padding: var(--sl-space-lg);
  box-shadow:
    0 10px 20px rgba(18,21,33,.03),
    inset 0 1px 0 rgba(255,255,255,.9);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}

.sl-why__title{
  margin: 0 0 var(--sl-stack-2);
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--sl-text-dark);
}

.sl-why__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sl-space-sm);
}

.sl-why__item{
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--sl-space-sm);
  align-items: start;
}

.sl-why__dot{
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #08144a 0%, #0f2c8f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 4px 10px rgba(8, 20, 74, .18);
  flex: 0 0 auto;
}

.sl-why__dot::after{
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.sl-why__text{
  font-size: 16px;
  line-height: 1.62;
  color: rgba(18,21,33,.90);
  letter-spacing: -0.01em;
}

.sl-why__actions{
  margin-top: auto;
  padding-top: var(--sl-stack-3);
}

/* Правая колонка */
.sl-why__media{
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  height: auto;
}

/* ВАЖНО: высоту на десктопе задаёт JS (inline height) */
.sl-why__image-card{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(18,21,33,.08);
  background: #dbe1e7;
  box-shadow:
    0 14px 28px rgba(18,21,33,.05),
    inset 0 1px 0 rgba(255,255,255,.45);
  width: 100%;

  /* fallback, пока JS не выставил height инлайном */
  height: auto;
  aspect-ratio: 13 / 10;
}

/* На десктопе не ограничиваем высоту вообще — иначе max-height ломает pixel perfect */
@media (min-width: 992px){
  .sl-why__image-card{
    max-height: none !important;
  }
}

.sl-why__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Why responsive --- */
@media (max-width: 991px){
  .sl-why{
    padding-bottom: var(--sl-section-y);
  }

  .sl-why__grid{
    grid-template-columns: 1fr;
    gap: var(--sl-grid-gap);
    align-items: stretch;
  }

  .sl-why__content{
    padding: var(--sl-space-md);
    border-radius: 18px;
    height: auto;
    min-height: auto;
  }

  .sl-why__list{
    gap: var(--sl-space-sm);
  }

  .sl-why__item{
    gap: var(--sl-space-sm);
  }

  .sl-why__text{
    font-size: 15px;
    line-height: 1.55;
  }

  .sl-why__actions{
    margin-top: var(--sl-stack-2);
    padding-top: 0;
  }

  .sl-why__media{
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .sl-why__image-card{
    height: auto;            /* JS не вмешивается */
    min-height: 320px;
    aspect-ratio: auto;
    border-radius: 18px;
  }
}

@media (max-width: 767px){
  .sl-why{
    padding-bottom: var(--sl-section-y-tight);
  }

  .sl-why__content{
    border-radius: 16px;
    padding: 18px 14px 14px;
  }

  .sl-why__title{
    font-size: 30px;
    margin-bottom: var(--sl-stack-2);
  }

  .sl-why__list{
    gap: var(--sl-space-xs);
  }

  .sl-why__item{
    grid-template-columns: 18px minmax(0, 1fr);
    gap: var(--sl-space-xs);
  }

  .sl-why__dot{
    width: 18px;
    height: 18px;
    margin-top: 1px;
  }

  .sl-why__dot::after{
    left: 5px;
    top: 4px;
    width: 6px;
    height: 3px;
    border-left-width: 2px;
    border-bottom-width: 2px;
  }

  .sl-why__text{
    font-size: 14px;
    line-height: 1.46;
  }

  .sl-why__actions{
    margin-top: var(--sl-stack-2);
    padding-top: 0;
  }

  .sl-why__actions .sl-btn{
    width: 100%;
    justify-content: center;
  }

  .sl-why__image-card{
    border-radius: 16px;
    min-height: 240px;
  }
}