/* assets/css/blocks/features-with-screen.css — UPDATED
   Левая колонка растягивается по высоте правой колонки,
   список равномерно распределяется (justify-content: space-between).
*/

.features-with-screen {
  background: #fff;
  color: #111;
  width: 100%;
  box-sizing: border-box;
}

.features-with-screen__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 20px;
  display: block;
  box-sizing: border-box;
  font-family: "MontserratCustom", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Левая колонка занимает всю высоту родителя */
.features-with-screen__left {
  display: flex;
  flex-direction: column;
  /* stretch по высоте через align-items: stretch в grid + display:flex здесь */
}

/* Список: растягиваем по высоте и равномерно распределяем элементы */
.features-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 44px;
}

/* Элемент списка — выравниваем иконку и текст */
.features-list__item {
  display: flex;
  gap: 22px;
  align-items: center; /* центрует по общей линии внутри пункта */
}

/* Иконки */
.features-list__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

/* Контент */
.features-list__content {
  max-width: none;
}
.features-list__title {
  margin: 0 0 8px;
  font-family: "MontserratCustom", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
}
.features-list__text {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.64;
  color: #333;
}

/* Правая колонка — делаем картинку занимать всю высоту колонки */
.features-with-screen__right {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
}
.features-with-screen__screen {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.12);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.features-with-screen__screen:hover,
.features-with-screen__screen:focus {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow: 0 22px 56px rgba(0,0,0,0.16);
  outline: none;
}

.features-with-screen__screen:focus-visible {
  outline: 3px solid rgba(255,109,61,0.22);
  outline-offset: 4px;
}

/* Responsive: tablet */
@media (max-width: 1024px) {
  .features-with-screen__inner { padding: 42px 18px; }
  .features-list { gap: 28px 32px; }
  .features-with-screen__screen { max-width: 100%; }
}

/* Mobile: stack — убираем растяжение, делаем обычный поток */
@media (max-width: 768px) {
  .features-with-screen__inner { padding: 28px 14px; }
  .features-with-screen__left { width: 100%; }
  .features-list { grid-template-columns: 1fr; gap: 18px; }
  .features-list__item { align-items: center; }
  .features-list__icon { width: 56px; height: 56px; }
  .features-with-screen__right { display: none; }
}

/* Accessibility focus outline (option) */
.features-list__icon:focus { outline: 3px solid rgba(255,109,61,0.12); outline-offset: 2px; }
