.block-market-problems {
  background: #fff;
  padding: var(--section-pad-y) 0;
}

.block-market-problems__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--layout-inline);
}

.block-market-problems__head {
  margin-bottom: var(--section-head-gap);
}

.block-market-problems__head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.block-market-problems__title {
  flex: none;
  flex-grow: 0;
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  margin: 0 0 clamp(18px, 2.6vw, 30px);
  padding: 0;
  font-family: "Ubuntu", var(--font), system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  color: #252529;
}

.block-market-problems__lead {
  margin: 0;
  font-family: "Roboto", var(--font), system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: #59595b;
}

.block-market-problems__lead strong {
  color: #6a4d95;
  font-weight: 700;
}

.block-market-problems__index {
  flex: none;
}

.block-market-problems__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-bottom: clamp(16px, 2.4vw, 24px);
  align-items: start;
}


.block-market-problems__image-card {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 211px;
  min-height: 211px;
  margin: 0;
  overflow: hidden;
  background-color: #d3c2a7;
}

.block-market-problems__image-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  z-index: 0;
}

.block-market-problems__image-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(37, 37, 41, 0.08), rgba(37, 37, 41, 0.18));
}

.block-market-problems__image-card--damaged::before {
  background-image: url("../../assets/problem-card-01.webp");
}

.block-market-problems__image-card--healthy::before {
  background-image: url("../../assets/problem-card-02.webp");
}

.block-market-problems__image-label {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 1.6vw, 18px);
  left: clamp(14px, 1.6vw, 18px);
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  font-family: "Roboto", var(--font), system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.25vw, 1.35rem);
  font-weight: 500;
  line-height: 1.2;
  color: #3a3a40;
  background: rgba(187, 174, 156, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.block-market-problems__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin: 0;
  padding: 0;
}

.block-market-problems__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: clamp(170px, 19vw, 214px);
  padding: clamp(18px, 2vw, 24px);
  background: #f0f2f2;
}

.block-market-problems__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 42px;
  font-family: "Roboto", var(--font), system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1;
  color: #6a4d95;
}

.block-market-problems__num::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 42' fill='none' stroke='%236A4D95' stroke-width='1.1' stroke-linecap='square'%3E%3Cpath d='M11 0.55H0.55V10.95'/%3E%3Cpath d='M42.95 0.55H53.45V10.95'/%3E%3Cpath d='M0.55 31.05V41.45H11'/%3E%3Cpath d='M42.95 41.45H53.45V31.05'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.block-market-problems__item-title {
  margin: 0 0 8px;
  font-family: "Roboto", var(--font), system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight: 700;
  line-height: 1.18;
  color: #6a4d95;
}

.block-market-problems__item-text {
  margin: 0;
  font-family: "Roboto", var(--font), system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  font-weight: 400;
  line-height: 1.25;
  color: #55565b;
}

@media (max-width: 1100px) {
  .block-market-problems__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .block-market-problems__head-top {
    gap: clamp(8px, 2vw, 16px);
  }

  .block-market-problems__gallery {
    grid-template-columns: 1fr;
  }

  .block-market-problems__image-card {
    height: clamp(160px, 42vw, 211px);
    min-height: clamp(160px, 42vw, 211px);
  }

  .block-market-problems__title {
    font-size: clamp(22px, 5.5vw, 36px);
    min-height: 0;
    line-height: 1.08;
  }
}

@media (max-width: 560px) {
  .block-market-problems__grid {
    grid-template-columns: 1fr;
  }

  .block-market-problems__item {
    min-height: 0;
  }
}
