.opcm {
  width: 100%;
  padding: var(--opcm-pad-top, 28px) 20px var(--opcm-pad-bottom, 16px);
  background: var(--opcm-section-bg, #f3f1ea);
  box-sizing: border-box;
}

.opcm__inner {
  width: 100%;
  max-width: var(--opcm-max-width, 1400px);
  margin: 0 auto;
}

.opcm__panel {
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid #ecefe8;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(33, 79, 47, 0.06);
  box-sizing: border-box;
}

.opcm__head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.opcm__head-copy {
  flex: 1;
  min-width: 0;
  max-width: 760px;
}

.opcm__title {
  margin: 0 0 8px;
  color: var(--opcm-title-color, #214f2f);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--opcm-title-size, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.opcm__desc {
  margin: 0;
  color: var(--opcm-desc-color, #6d7a68);
  font-size: var(--opcm-desc-size, 14px);
  line-height: 1.55;
}

.opcm__scroll-btn {
  display: inline-flex;
  flex-shrink: 0;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--opcm-btn-color, #214f2f) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  background: var(--opcm-btn-bg, #edf5ee);
  border: 1px solid #d7e5d8;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.opcm__scroll-btn:hover {
  background: #e2efe4;
  border-color: #c5d8c7;
}

.opcm__grid {
  display: grid;
  grid-template-columns: repeat(var(--opcm-columns, 5), minmax(0, 1fr));
  gap: var(--opcm-gap, 12px);
}

.opcm__card {
  display: flex;
  gap: 12px;
  align-items: stretch;
  min-height: 100%;
  padding: 12px;
  color: inherit !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #e7ebe4;
  border-radius: 18px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.opcm__card:hover {
  border-color: #c8d5c6;
  box-shadow: 0 8px 20px rgba(33, 79, 47, 0.08);
  transform: translateY(-2px);
}

.opcm__card-icon {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-height: 72px;
  overflow: hidden;
  background: var(--opcm-icon-bg, #edf5ee);
  border-radius: 14px;
}

.opcm__card-icon img,
.opcm__card-icon .image,
.opcm__card-icon picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opcm__card-icon-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  line-height: 1;
}

.opcm__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 2px 2px 2px 0;
}

.opcm__card-title {
  color: #1a2e1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.opcm__card-subtitle {
  color: #7a8676;
  font-size: 12px;
  line-height: 1.35;
}

.opcm__card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 22px;
  padding: 0 10px;
  color: var(--opcm-badge-color, #214f2f);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  background: var(--opcm-badge-bg, #edf5ee);
  border-radius: 999px;
}

.opcm__stack-intro {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
}

.opcm__stack-title {
  margin: 0 0 10px;
  color: var(--opcm-stack-title-color, #1a2e1f);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--opcm-stack-title-size, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.opcm__stack-desc {
  margin: 0;
  color: var(--opcm-stack-desc-color, #5a6558);
  font-size: var(--opcm-stack-desc-size, 14px);
  line-height: 1.55;
}

@media (max-width: 1099px) {
  .opcm__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 749px) {
  .opcm {
    padding-inline: 16px;
  }

  .opcm__panel {
    padding: 18px 14px 14px;
    border-radius: 20px;
  }

  .opcm__head {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .opcm__title {
    font-size: calc(var(--opcm-title-size, 30px) * 0.85);
  }

  .opcm__scroll-btn {
    align-self: flex-start;
  }

  .opcm__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .opcm__card-icon {
    width: 64px;
    min-height: 64px;
  }

  .opcm__stack-intro {
    margin-top: 28px;
  }
}
